aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/test/java/org/sonarqube/pageobjects/QualityGatePage.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/test/java/org/sonarqube/pageobjects/QualityGatePage.java')
-rw-r--r--tests/src/test/java/org/sonarqube/pageobjects/QualityGatePage.java14
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/src/test/java/org/sonarqube/pageobjects/QualityGatePage.java b/tests/src/test/java/org/sonarqube/pageobjects/QualityGatePage.java
index 3d7162f898d..4133bbfeb92 100644
--- a/tests/src/test/java/org/sonarqube/pageobjects/QualityGatePage.java
+++ b/tests/src/test/java/org/sonarqube/pageobjects/QualityGatePage.java
@@ -26,11 +26,11 @@ import static com.codeborne.selenide.Selenide.$$;
public class QualityGatePage {
public QualityGatePage() {
- $(".quality-gates-results").shouldBe(Condition.visible);
+ $("#quality-gates-page").shouldBe(Condition.visible);
}
public QualityGatePage countQualityGates(Integer count) {
- $$(".quality-gates-results .list-group-item").shouldHaveSize(count);
+ $$("#quality-gates-page .list-group-item").shouldHaveSize(count);
return this;
}
@@ -43,4 +43,14 @@ public class QualityGatePage {
$("#quality-gate-add").shouldNot(Condition.exist);
return this;
}
+
+ public QualityGatePage displayIntro() {
+ $(".search-navigator-intro").should(Condition.exist).shouldBe(Condition.visible);
+ return this;
+ }
+
+ public QualityGatePage displayQualityGateDetail(String qualityGateName) {
+ $(".layout-page-main-header").shouldHave(Condition.text(qualityGateName));
+ return this;
+ }
}