aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEric Hartmann <hartmann.eric@gmail.com>2017-11-22 01:49:15 +0100
committerEric Hartmann <hartmann.eric@gmail.Com>2017-12-04 13:44:55 +0100
commit43e4f60243539bdbcfdcefea14774ee1e108fc1a (patch)
treeb2e423db69ff2abd92174b564e0ebe6fdc9754a4 /tests
parentbc8db6a88713488ec46d0b45f24d5a0ef7b37103 (diff)
downloadsonarqube-43e4f60243539bdbcfdcefea14774ee1e108fc1a.tar.gz
sonarqube-43e4f60243539bdbcfdcefea14774ee1e108fc1a.zip
SONAR-10089 Automatically update built-in quality gate
Diffstat (limited to 'tests')
-rw-r--r--tests/src/test/java/org/sonarqube/tests/qualityGate/OrganizationQualityGateUiTest.java4
-rw-r--r--tests/src/test/java/org/sonarqube/tests/qualityGate/QualityGateUiTest.java2
-rw-r--r--tests/src/test/java/org/sonarqube/tests/webhook/WebhooksTest.java2
-rw-r--r--tests/src/test/resources/measure/ProjectDashboardTest/test_project_overview_after_first_analysis.html2
4 files changed, 5 insertions, 5 deletions
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<String, Object> gate = (Map<String, Object>) 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 @@
<tr>
<td>waitForText</td>
<td>id=content</td>
- <td>*Quality Gate*SonarQube way*</td>
+ <td>*Quality Gate*Sonar way*</td>
</tr>
<tr>
<td>waitForText</td>