diff options
author | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2017-05-16 13:39:01 +0200 |
---|---|---|
committer | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2017-05-18 11:11:38 +0200 |
commit | 6297a95ee597f6b14d2f44cf8356ffaf26b9f9e9 (patch) | |
tree | c39ccaa069ca106dcf56262c41be2bfd4af99c15 /it | |
parent | 04b7bf3ccc22daea116a67e6ba174237805e5ccf (diff) | |
download | sonarqube-6297a95ee597f6b14d2f44cf8356ffaf26b9f9e9.tar.gz sonarqube-6297a95ee597f6b14d2f44cf8356ffaf26b9f9e9.zip |
SQCOM-7 Add a custom footer for sonarqube.com
Diffstat (limited to 'it')
-rw-r--r-- | it/it-tests/src/test/java/it/ui/UiTest.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/it/it-tests/src/test/java/it/ui/UiTest.java b/it/it-tests/src/test/java/it/ui/UiTest.java index b60c9e2768c..9c002a029a1 100644 --- a/it/it-tests/src/test/java/it/ui/UiTest.java +++ b/it/it-tests/src/test/java/it/ui/UiTest.java @@ -22,12 +22,14 @@ package it.ui; import com.sonar.orchestrator.Orchestrator; import com.sonar.orchestrator.build.SonarScanner; import it.Category4Suite; +import it.user.ForceAuthenticationTest; import java.util.Map; import org.junit.ClassRule; import org.junit.Rule; import org.junit.Test; import org.sonarqube.ws.client.GetRequest; import org.sonarqube.ws.client.WsResponse; +import org.sonarqube.ws.client.setting.SetRequest; import pageobjects.Navigation; import util.ItUtils; @@ -38,6 +40,7 @@ import static com.codeborne.selenide.Selenide.$; import static com.codeborne.selenide.WebDriverRunner.url; import static org.assertj.core.api.Assertions.assertThat; import static util.ItUtils.projectDir; +import static util.ItUtils.setServerProperty; public class UiTest { @@ -72,6 +75,16 @@ public class UiTest { } @Test + public void footer_doesnt_contains_about_when_not_logged_in() { + setServerProperty(ORCHESTRATOR, "sonar.forceAuthentication", "true"); + nav.openLogin(); + nav.getFooter() + .shouldNot(hasText("About")) + .shouldNot(hasText("Web API")); + setServerProperty(ORCHESTRATOR, "sonar.forceAuthentication", null); + } + + @Test public void many_page_transitions() { analyzeSampleProject(); |