aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/test/java
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2018-04-27 17:12:23 +0200
committerSonarTech <sonartech@sonarsource.com>2018-05-03 20:20:50 +0200
commita8720f16734bee6b8c69d5364ac30d83af420567 (patch)
tree6de9679e6426e84baad7afa3bf8cb1bf34e8370b /tests/src/test/java
parent8fdadf99370e485e6a0c33d3b3cfbe0732a7ce20 (diff)
downloadsonarqube-a8720f16734bee6b8c69d5364ac30d83af420567.tar.gz
sonarqube-a8720f16734bee6b8c69d5364ac30d83af420567.zip
SONARCLOUD-49 Wrap organization extension inside OrganizationAdminContainer
Diffstat (limited to 'tests/src/test/java')
-rw-r--r--tests/src/test/java/org/sonarqube/tests/organization/OrganizationWebExtensionsTest.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/src/test/java/org/sonarqube/tests/organization/OrganizationWebExtensionsTest.java b/tests/src/test/java/org/sonarqube/tests/organization/OrganizationWebExtensionsTest.java
index 2efd912a4c5..09cc242c6ba 100644
--- a/tests/src/test/java/org/sonarqube/tests/organization/OrganizationWebExtensionsTest.java
+++ b/tests/src/test/java/org/sonarqube/tests/organization/OrganizationWebExtensionsTest.java
@@ -45,7 +45,9 @@ public class OrganizationWebExtensionsTest {
@Test
public void organization_page() {
Organization organization = tester.organizations().generate();
- tester.openBrowser().open("/organizations/" + organization.getKey() + "/projects");
+ User administrator = tester.users().generateAdministrator(organization);
+ tester.openBrowser().logIn().submitCredentials(administrator.getLogin())
+ .open("/organizations/" + organization.getKey() + "/projects");
$("#organization-navigation-more").click();
$(By.linkText("Organization Page")).shouldBe(Condition.visible).click();