From 43e4f60243539bdbcfdcefea14774ee1e108fc1a Mon Sep 17 00:00:00 2001 From: Eric Hartmann Date: Wed, 22 Nov 2017 01:49:15 +0100 Subject: SONAR-10089 Automatically update built-in quality gate --- .../sonarqube/tests/qualityGate/OrganizationQualityGateUiTest.java | 4 ++-- .../test/java/org/sonarqube/tests/qualityGate/QualityGateUiTest.java | 2 +- tests/src/test/java/org/sonarqube/tests/webhook/WebhooksTest.java | 2 +- .../test_project_overview_after_first_analysis.html | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'tests') diff --git a/tests/src/test/java/org/sonarqube/tests/qualityGate/OrganizationQualityGateUiTest.java b/tests/src/test/java/org/sonarqube/tests/qualityGate/OrganizationQualityGateUiTest.java index d311e4aab1b..30fff3e7545 100644 --- a/tests/src/test/java/org/sonarqube/tests/qualityGate/OrganizationQualityGateUiTest.java +++ b/tests/src/test/java/org/sonarqube/tests/qualityGate/OrganizationQualityGateUiTest.java @@ -112,7 +112,7 @@ public class OrganizationQualityGateUiTest { ProjectDashboardPage page = tester.openBrowser() .logIn().submitCredentials(user.getLogin()) .openProjectDashboard(project); - page.hasQualityGateLink("SonarQube way", link); + page.hasQualityGateLink("Sonar way", link); } @Test @@ -120,6 +120,6 @@ public class OrganizationQualityGateUiTest { QualityGatePage page = tester.openBrowser() .logIn().submitCredentials(user.getLogin()) .openQualityGates(organization.getKey()); - page.countQualityGates(1).displayQualityGateDetail("SonarQube way"); + page.countQualityGates(1).displayQualityGateDetail("Sonar way"); } } diff --git a/tests/src/test/java/org/sonarqube/tests/qualityGate/QualityGateUiTest.java b/tests/src/test/java/org/sonarqube/tests/qualityGate/QualityGateUiTest.java index 0baa09641a2..859f6b479fc 100644 --- a/tests/src/test/java/org/sonarqube/tests/qualityGate/QualityGateUiTest.java +++ b/tests/src/test/java/org/sonarqube/tests/qualityGate/QualityGateUiTest.java @@ -113,7 +113,7 @@ public class QualityGateUiTest { .logIn().submitCredentials(login) .openQualityGates() .canNotCreateQG() - .displayQualityGateDetail("SonarQube way"); + .displayQualityGateDetail("Sonar way"); tester.openBrowser() .logIn().submitCredentials(admin) .openQualityGates() diff --git a/tests/src/test/java/org/sonarqube/tests/webhook/WebhooksTest.java b/tests/src/test/java/org/sonarqube/tests/webhook/WebhooksTest.java index b56680b7299..b88d64da715 100644 --- a/tests/src/test/java/org/sonarqube/tests/webhook/WebhooksTest.java +++ b/tests/src/test/java/org/sonarqube/tests/webhook/WebhooksTest.java @@ -113,7 +113,7 @@ public class WebhooksTest { assertThat(project.get("name")).isEqualTo(PROJECT_NAME); assertThat(project.get("url")).isEqualTo(orchestrator.getServer().getUrl() + "/dashboard?id=" + PROJECT_KEY); Map gate = (Map) payload.get("qualityGate"); - assertThat(gate.get("name")).isEqualTo("SonarQube way"); + assertThat(gate.get("name")).isEqualTo("Sonar way"); assertThat(gate.get("status")).isEqualTo("OK"); assertThat(gate.get("conditions")).isNotNull(); diff --git a/tests/src/test/resources/measure/ProjectDashboardTest/test_project_overview_after_first_analysis.html b/tests/src/test/resources/measure/ProjectDashboardTest/test_project_overview_after_first_analysis.html index ac440b184aa..12a1ea27125 100644 --- a/tests/src/test/resources/measure/ProjectDashboardTest/test_project_overview_after_first_analysis.html +++ b/tests/src/test/resources/measure/ProjectDashboardTest/test_project_overview_after_first_analysis.html @@ -42,7 +42,7 @@ waitForText id=content - *Quality Gate*SonarQube way* + *Quality Gate*Sonar way* waitForText -- cgit v1.2.3