aboutsummaryrefslogtreecommitdiffstats
path: root/it/it-tests
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-03-24 11:20:18 +0100
committerStas Vilchik <vilchiks@gmail.com>2016-03-25 13:02:42 +0100
commitbdd14b31bcd4ff599dd2dffd133d80f43b8970c3 (patch)
tree55d5ac42dd12c67853794c163cd3c4603f3dca36 /it/it-tests
parent5869fc40c78cd2e1b7b29a7d74670c0e5a6c1afa (diff)
downloadsonarqube-bdd14b31bcd4ff599dd2dffd133d80f43b8970c3.tar.gz
sonarqube-bdd14b31bcd4ff599dd2dffd133d80f43b8970c3.zip
SONAR-7402 improve display of measures home page
Diffstat (limited to 'it/it-tests')
-rw-r--r--it/it-tests/src/test/java/it/measure/ProjectMeasuresPageTest.java1
-rw-r--r--it/it-tests/src/test/resources/measure/ProjectMeasuresPageTest/should_display_measures_page.html12
-rw-r--r--it/it-tests/src/test/resources/measure/ProjectMeasuresPageTest/should_drilldown_on_list_view.html2
-rw-r--r--it/it-tests/src/test/resources/measure/ProjectMeasuresPageTest/should_drilldown_on_tree_view.html2
4 files changed, 8 insertions, 9 deletions
diff --git a/it/it-tests/src/test/java/it/measure/ProjectMeasuresPageTest.java b/it/it-tests/src/test/java/it/measure/ProjectMeasuresPageTest.java
index a84550085ec..461ed496c7c 100644
--- a/it/it-tests/src/test/java/it/measure/ProjectMeasuresPageTest.java
+++ b/it/it-tests/src/test/java/it/measure/ProjectMeasuresPageTest.java
@@ -20,7 +20,6 @@
package it.measure;
import com.sonar.orchestrator.Orchestrator;
-import com.sonar.orchestrator.build.SonarRunner;
import com.sonar.orchestrator.build.SonarScanner;
import com.sonar.orchestrator.selenium.Selenese;
import it.Category1Suite;
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 40992b13252..52c94cb562f 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
@@ -15,28 +15,28 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>id=measure-ncloc</td>
+ <td>id=measure-code_smells</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
- <td>id=measure-ncloc</td>
- <td>*13*</td>
+ <td>id=measure-code_smells-value</td>
+ <td>*0*</td>
</tr>
<tr>
<td>assertText</td>
- <td>id=measure-ncloc-leak</td>
+ <td>id=measure-code_smells-leak</td>
<td>*+0*</td>
</tr>
<tr>
<td>click</td>
- <td>css=#measure-ncloc &gt; a</td>
+ <td>css=#measure-code_smells &gt; a</td>
<td></td>
</tr>
<tr>
<td>waitForText</td>
<td>content</td>
- <td>*Lines of code*13*</td>
+ <td>*Code Smells*0*</td>
</tr>
<tr>
<td>waitForText</td>
diff --git a/it/it-tests/src/test/resources/measure/ProjectMeasuresPageTest/should_drilldown_on_list_view.html b/it/it-tests/src/test/resources/measure/ProjectMeasuresPageTest/should_drilldown_on_list_view.html
index ee439b1286c..d7d6085f671 100644
--- a/it/it-tests/src/test/resources/measure/ProjectMeasuresPageTest/should_drilldown_on_list_view.html
+++ b/it/it-tests/src/test/resources/measure/ProjectMeasuresPageTest/should_drilldown_on_list_view.html
@@ -10,7 +10,7 @@
<tbody>
<tr>
<td>open</td>
- <td>/component_measures/ncloc/list?id=project-measures-page-test-project</td>
+ <td>/component_measures/metric/ncloc/list?id=project-measures-page-test-project</td>
<td></td>
</tr>
<tr>
diff --git a/it/it-tests/src/test/resources/measure/ProjectMeasuresPageTest/should_drilldown_on_tree_view.html b/it/it-tests/src/test/resources/measure/ProjectMeasuresPageTest/should_drilldown_on_tree_view.html
index 399b22cf4d3..a654f8e5c0e 100644
--- a/it/it-tests/src/test/resources/measure/ProjectMeasuresPageTest/should_drilldown_on_tree_view.html
+++ b/it/it-tests/src/test/resources/measure/ProjectMeasuresPageTest/should_drilldown_on_tree_view.html
@@ -10,7 +10,7 @@
<tbody>
<tr>
<td>open</td>
- <td>/component_measures/ncloc/tree?id=project-measures-page-test-project</td>
+ <td>/component_measures/metric/ncloc/tree?id=project-measures-page-test-project</td>
<td></td>
</tr>
<tr>