From dccf95202c171899a045fd414f256e7ca22dadc2 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Wed, 19 Jul 2017 16:56:38 +0200 Subject: SONAR-9583 Use fixed width layout for navigation --- .../test/java/org/sonarqube/pageobjects/organization/MembersPage.java | 2 +- .../test/java/org/sonarqube/tests/ui/OrganizationUiExtensionsTest.java | 2 +- tests/src/test/java/org/sonarqube/tests/ui/UiExtensionsTest.java | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/src/test/java/org/sonarqube/pageobjects/organization/MembersPage.java b/tests/src/test/java/org/sonarqube/pageobjects/organization/MembersPage.java index 76d091305f6..a7d994be397 100644 --- a/tests/src/test/java/org/sonarqube/pageobjects/organization/MembersPage.java +++ b/tests/src/test/java/org/sonarqube/pageobjects/organization/MembersPage.java @@ -32,7 +32,7 @@ import static com.codeborne.selenide.Selenide.$$; public class MembersPage { public MembersPage() { - $(".nav-tabs a.active").shouldBe(visible).shouldHave(text("Members")); + $(".navbar-tabs a.active").shouldBe(visible).shouldHave(text("Members")); } public ElementsCollection getMembers() { diff --git a/tests/src/test/java/org/sonarqube/tests/ui/OrganizationUiExtensionsTest.java b/tests/src/test/java/org/sonarqube/tests/ui/OrganizationUiExtensionsTest.java index 5198fc89062..590926eb229 100644 --- a/tests/src/test/java/org/sonarqube/tests/ui/OrganizationUiExtensionsTest.java +++ b/tests/src/test/java/org/sonarqube/tests/ui/OrganizationUiExtensionsTest.java @@ -63,7 +63,7 @@ public class OrganizationUiExtensionsTest { .logIn().submitCredentials(administrator.getLogin()) .open("/organizations/" + organization.getKey() + "/projects"); - $("#context-navigation a.navbar-admin-link").click(); + $("#context-navigation a.is-admin").click(); $(By.linkText("Organization Admin Page")).shouldBe(Condition.visible).click(); assertThat(url()).contains("uiextensionsplugin/organization_admin_page"); diff --git a/tests/src/test/java/org/sonarqube/tests/ui/UiExtensionsTest.java b/tests/src/test/java/org/sonarqube/tests/ui/UiExtensionsTest.java index db79e355e35..f3215b096bc 100644 --- a/tests/src/test/java/org/sonarqube/tests/ui/UiExtensionsTest.java +++ b/tests/src/test/java/org/sonarqube/tests/ui/UiExtensionsTest.java @@ -66,9 +66,8 @@ public class UiExtensionsTest { User administrator = tester.users().generateAdministrator(); tester.openBrowser() .logIn().submitCredentials(administrator.getLogin()) - .open("/about"); + .open("/settings"); - $(".navbar-admin-link").click(); $("#settings-navigation-configuration").click(); $(By.linkText("Global Admin Page")).click(); -- cgit v1.2.3