From 08be68fda3cfd859ab412bfa634409d211f79927 Mon Sep 17 00:00:00 2001 From: Grégoire Aubert Date: Fri, 1 Dec 2017 15:44:27 +0100 Subject: SONAR-10074 Use new QP actions 'delete' and 'associateProjects' --- .../sonarqube/qa/util/pageobjects/QualityProfilePage.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'server/sonar-qa-util/src') diff --git a/server/sonar-qa-util/src/main/java/org/sonarqube/qa/util/pageobjects/QualityProfilePage.java b/server/sonar-qa-util/src/main/java/org/sonarqube/qa/util/pageobjects/QualityProfilePage.java index 88b009687b0..0541b1bd794 100644 --- a/server/sonar-qa-util/src/main/java/org/sonarqube/qa/util/pageobjects/QualityProfilePage.java +++ b/server/sonar-qa-util/src/main/java/org/sonarqube/qa/util/pageobjects/QualityProfilePage.java @@ -48,7 +48,19 @@ public class QualityProfilePage { public QualityProfilePage shouldAllowToChangeProjects() { Selenide.$(".js-change-projects").shouldBe(Condition.visible).click(); - Selenide.$("#profile-projects .select-list-list").shouldBe(Condition.visible); + Selenide.$("#profile-projects .select-list-list-container").shouldBe(Condition.visible); + return this; + } + + public QualityProfilePage shouldNotAllowToChangeProjects() { + Selenide.$(".js-change-projects").shouldNot(Condition.exist); + return this; + } + + public QualityProfilePage shouldNotAllowToEdit() { + Selenide.$("button.dropdown-toggle").should(Condition.exist).click(); + Selenide.$("#quality-profile-rename").shouldNot(Condition.exist); + Selenide.$("#quality-profile-activate-more-rules").shouldNot(Condition.exist); return this; } } -- cgit v1.2.3