aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-02-12 12:36:32 +0100
committerStas Vilchik <vilchiks@gmail.com>2016-02-12 14:40:45 +0100
commit9e5166d40483c1dd7815edc76f91468c144ebbe3 (patch)
tree555390531d442e2d23da3775cf0b9bebdbe3ab24
parent8b36b92c75be2da2d16e9d14e3fe2254f6dc4368 (diff)
downloadsonarqube-9e5166d40483c1dd7815edc76f91468c144ebbe3.tar.gz
sonarqube-9e5166d40483c1dd7815edc76f91468c144ebbe3.zip
stabilize ProjectDrilldownTest
-rw-r--r--it/it-tests/src/test/resources/projectServices/ProjectDrilldownTest/should_display_measure_drilldown.html5
-rw-r--r--server/sonar-web/src/main/js/apps/drilldown/app.js2
2 files changed, 6 insertions, 1 deletions
diff --git a/it/it-tests/src/test/resources/projectServices/ProjectDrilldownTest/should_display_measure_drilldown.html b/it/it-tests/src/test/resources/projectServices/ProjectDrilldownTest/should_display_measure_drilldown.html
index 192440c454c..f39d6888a7f 100644
--- a/it/it-tests/src/test/resources/projectServices/ProjectDrilldownTest/should_display_measure_drilldown.html
+++ b/it/it-tests/src/test/resources/projectServices/ProjectDrilldownTest/should_display_measure_drilldown.html
@@ -19,6 +19,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>css=a.js-drilldown-link.js-ready</td>
+ <td></td>
+</tr>
+<tr>
<td>click</td>
<td>css=a[data-key=&quot;project-drilldown-test-project:src/main/xoo/sample/Sample.xoo&quot;]</td>
<td></td>
diff --git a/server/sonar-web/src/main/js/apps/drilldown/app.js b/server/sonar-web/src/main/js/apps/drilldown/app.js
index fb8c35d9b99..f3262566647 100644
--- a/server/sonar-web/src/main/js/apps/drilldown/app.js
+++ b/server/sonar-web/src/main/js/apps/drilldown/app.js
@@ -38,7 +38,7 @@ var App = new Marionette.Application(),
viewer.filterLinesByDate(window.drilldown.period, window.drilldown.periodName);
});
}
- });
+ }).addClass('js-ready');
};
App.on('start', function (options) {