From 9e5166d40483c1dd7815edc76f91468c144ebbe3 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Fri, 12 Feb 2016 12:36:32 +0100 Subject: [PATCH] stabilize ProjectDrilldownTest --- .../should_display_measure_drilldown.html | 5 +++++ server/sonar-web/src/main/js/apps/drilldown/app.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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) { -- 2.39.5