diff options
author | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2017-07-20 16:53:00 +0200 |
---|---|---|
committer | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2017-07-25 09:20:30 +0200 |
commit | 1ef941b5c7b4faa45f7f19461a8b1d81ccac540d (patch) | |
tree | af6fada5dc0333790b859858b76fd08867d07158 /tests | |
parent | 5d7a55d1a1f259ab7b9395743c36af7aa83827a9 (diff) | |
download | sonarqube-1ef941b5c7b4faa45f7f19461a8b1d81ccac540d.tar.gz sonarqube-1ef941b5c7b4faa45f7f19461a8b1d81ccac540d.zip |
SONAR-9566 Remove organization name from component path when in issues page at org level
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/test/java/org/sonarqube/pageobjects/issues/IssuesPage.java | 5 | ||||
-rw-r--r-- | tests/src/test/java/org/sonarqube/tests/issue/OrganizationIssuesPageTest.java | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/tests/src/test/java/org/sonarqube/pageobjects/issues/IssuesPage.java b/tests/src/test/java/org/sonarqube/pageobjects/issues/IssuesPage.java index 572b69b8454..0918af6b0ae 100644 --- a/tests/src/test/java/org/sonarqube/pageobjects/issues/IssuesPage.java +++ b/tests/src/test/java/org/sonarqube/pageobjects/issues/IssuesPage.java @@ -66,6 +66,11 @@ public class IssuesPage { return this; } + public IssuesPage componentsShouldNotContain(String path) { + this.getIssuesPathComponents().forEach(element -> element.shouldNotHave(text(path))); + return this; + } + public IssuesPage bulkChangeOpen() { $("#issues-bulk-change").shouldBe(visible).click(); $("#bulk-change-form").shouldBe(visible); diff --git a/tests/src/test/java/org/sonarqube/tests/issue/OrganizationIssuesPageTest.java b/tests/src/test/java/org/sonarqube/tests/issue/OrganizationIssuesPageTest.java index f6f5a1dcaeb..979467ee693 100644 --- a/tests/src/test/java/org/sonarqube/tests/issue/OrganizationIssuesPageTest.java +++ b/tests/src/test/java/org/sonarqube/tests/issue/OrganizationIssuesPageTest.java @@ -73,10 +73,11 @@ public class OrganizationIssuesPageTest { nav.openIssues(org1.getKey()) .issuesCount(2) - .componentsShouldContain(org1.getName()); + .componentsShouldNotContain(org1.getName()); nav.openIssues() - .issuesCount(4); + .issuesCount(4) + .componentsShouldContain("Org "); } private String provisionProject(Organizations.Organization organization) { |