From 6c85674174a202268c5aadf4e529cff0c3716251 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Thu, 10 Mar 2016 16:11:18 +0100 Subject: [PATCH] SONAR-7402 improve IT to check measures home page --- .../should_display_measures_page.html | 17 ++++++++++++++++- .../components/AllMeasuresDomain.js | 10 ++++++---- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/it/it-tests/src/test/resources/measure/ProjectMeasuresPageTest/should_display_measures_page.html b/it/it-tests/src/test/resources/measure/ProjectMeasuresPageTest/should_display_measures_page.html index 4e0a1cd0694..67fdb23d451 100644 --- a/it/it-tests/src/test/resources/measure/ProjectMeasuresPageTest/should_display_measures_page.html +++ b/it/it-tests/src/test/resources/measure/ProjectMeasuresPageTest/should_display_measures_page.html @@ -10,7 +10,22 @@ open - /component_measures/ncloc?id=project-measures-page-test-project + /component_measures?id=project-measures-page-test-project + + + + waitForElementPresent + id=measure-ncloc + + + + assertText + id=measure-ncloc + *13* + + + click + css=#measure-ncloc > a diff --git a/server/sonar-web/src/main/js/apps/component-measures/components/AllMeasuresDomain.js b/server/sonar-web/src/main/js/apps/component-measures/components/AllMeasuresDomain.js index 44df2b51b12..6068cfd31b1 100644 --- a/server/sonar-web/src/main/js/apps/component-measures/components/AllMeasuresDomain.js +++ b/server/sonar-web/src/main/js/apps/component-measures/components/AllMeasuresDomain.js @@ -53,21 +53,23 @@ export default function AllMeasuresDomain ({ domain, component, displayLeakHeade