diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2017-03-31 17:48:53 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2017-03-31 17:59:10 +0200 |
commit | aa5ca5c7e5f2695d4f1e589d907778b3e94bd2e1 (patch) | |
tree | ce7fa61610588555cfc52d1584e525fd91d6b72f /it | |
parent | 1246af8696184c4999bc439d0e2d4361c585ae81 (diff) | |
download | sonarqube-aa5ca5c7e5f2695d4f1e589d907778b3e94bd2e1.tar.gz sonarqube-aa5ca5c7e5f2695d4f1e589d907778b3e94bd2e1.zip |
fix measure timeline
Diffstat (limited to 'it')
-rw-r--r-- | it/it-tests/src/test/java/it/measure/ProjectMeasuresPageTest.java | 12 |
1 files changed, 12 insertions, 0 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 854109f632d..b69af1e0aad 100644 --- a/it/it-tests/src/test/java/it/measure/ProjectMeasuresPageTest.java +++ b/it/it-tests/src/test/java/it/measure/ProjectMeasuresPageTest.java @@ -25,7 +25,11 @@ import it.Category1Suite; import org.junit.BeforeClass; import org.junit.ClassRule; import org.junit.Test; +import pageobjects.Navigation; +import static com.codeborne.selenide.Condition.visible; +import static com.codeborne.selenide.Selenide.$; +import static com.codeborne.selenide.Selenide.$$; import static util.ItUtils.projectDir; import static util.selenium.Selenese.runSelenese; @@ -67,4 +71,12 @@ public class ProjectMeasuresPageTest { runSelenese(orchestrator, "/measure/ProjectMeasuresPageTest/should_drilldown_on_tree_view.html"); } + @Test + public void should_show_history() { + Navigation nav = Navigation.get(orchestrator); + nav.open("/component_measures/metric/reliability_rating/history?id=project-measures-page-test-project"); + $(".line-chart").shouldBe(visible); + $$(".line-chart-tick-x").shouldHaveSize(5); + } + } |