From: Stas Vilchik Date: Fri, 12 Feb 2016 11:36:32 +0000 (+0100) Subject: stabilize ProjectDrilldownTest X-Git-Tag: 5.5-M1~2^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9e5166d40483c1dd7815edc76f91468c144ebbe3;p=sonarqube.git stabilize ProjectDrilldownTest --- 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 @@ -18,6 +18,11 @@ css=a[data-key="project-drilldown-test-project:src/main/xoo/sample/Sample.xoo"] + + waitForElementPresent + css=a.js-drilldown-link.js-ready + + click css=a[data-key="project-drilldown-test-project:src/main/xoo/sample/Sample.xoo"] 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) {