aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
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