aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2017-09-24 22:27:08 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2017-09-26 23:49:38 +0200
commit8bc3e72c0b4ad94cf25dc3fdf53f82cc6cf52808 (patch)
tree99451ba5e29abacfca3ad7fc37e3ee0639f6648f /tests
parent7587e6f000c2cbf90c66f2424f3a7f597899d73d (diff)
downloadsonarqube-8bc3e72c0b4ad94cf25dc3fdf53f82cc6cf52808.tar.gz
sonarqube-8bc3e72c0b4ad94cf25dc3fdf53f82cc6cf52808.zip
SONAR-9802 improve name of Database sections
Diffstat (limited to 'tests')
-rw-r--r--tests/src/test/java/org/sonarqube/pageobjects/SystemInfoPageItem.java3
-rw-r--r--tests/src/test/java/org/sonarqube/tests/cluster/ClusterTest.java3
-rw-r--r--tests/src/test/java/org/sonarqube/tests/serverSystem/SystemInfoTest.java2
3 files changed, 5 insertions, 3 deletions
diff --git a/tests/src/test/java/org/sonarqube/pageobjects/SystemInfoPageItem.java b/tests/src/test/java/org/sonarqube/pageobjects/SystemInfoPageItem.java
index 19a023e165f..c477c874cb3 100644
--- a/tests/src/test/java/org/sonarqube/pageobjects/SystemInfoPageItem.java
+++ b/tests/src/test/java/org/sonarqube/pageobjects/SystemInfoPageItem.java
@@ -21,6 +21,7 @@ package org.sonarqube.pageobjects;
import com.codeborne.selenide.SelenideElement;
+import static com.codeborne.selenide.Condition.exactText;
import static com.codeborne.selenide.Condition.exist;
import static com.codeborne.selenide.Condition.text;
@@ -62,7 +63,7 @@ public class SystemInfoPageItem {
public SystemInfoPageItem shouldNotHaveField(String field) {
ensureOpen();
- elt.$$(".system-info-section-item-name").findBy(text(field)).shouldNot(exist);
+ elt.$$(".system-info-section-item-name").findBy(exactText(field)).shouldNot(exist);
return this;
}
diff --git a/tests/src/test/java/org/sonarqube/tests/cluster/ClusterTest.java b/tests/src/test/java/org/sonarqube/tests/cluster/ClusterTest.java
index b7221c8bb03..9ddde1ac32d 100644
--- a/tests/src/test/java/org/sonarqube/tests/cluster/ClusterTest.java
+++ b/tests/src/test/java/org/sonarqube/tests/cluster/ClusterTest.java
@@ -141,7 +141,8 @@ public class ClusterTest {
page.getCardItem("System")
.shouldHaveHealth()
.shouldHaveMainSection()
- .shouldNotHaveSection("Database")
+ .shouldHaveSection("Database")
+ .shouldHaveField("Database Version")
.shouldNotHaveSection("Settings")
.shouldNotHaveSection("Plugins")
.shouldHaveField("High Availability")
diff --git a/tests/src/test/java/org/sonarqube/tests/serverSystem/SystemInfoTest.java b/tests/src/test/java/org/sonarqube/tests/serverSystem/SystemInfoTest.java
index 605b058df26..c3d7a888f47 100644
--- a/tests/src/test/java/org/sonarqube/tests/serverSystem/SystemInfoTest.java
+++ b/tests/src/test/java/org/sonarqube/tests/serverSystem/SystemInfoTest.java
@@ -77,7 +77,7 @@ public class SystemInfoTest {
page.getCardItem("Search")
.shouldHaveSection("Search State")
- .shouldHaveSection("Search Statistics");
+ .shouldHaveSection("Search Indexes");
}
@Test