diff options
author | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2017-12-01 15:44:27 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2017-12-04 16:02:52 +0100 |
commit | 08be68fda3cfd859ab412bfa634409d211f79927 (patch) | |
tree | df9db70e60787cf0cbcef503dc6c468478dba65c /server/sonar-qa-util/src | |
parent | f25ece8fe820b708f08aac652cdda94183bcb2df (diff) | |
download | sonarqube-08be68fda3cfd859ab412bfa634409d211f79927.tar.gz sonarqube-08be68fda3cfd859ab412bfa634409d211f79927.zip |
SONAR-10074 Use new QP actions 'delete' and 'associateProjects'
Diffstat (limited to 'server/sonar-qa-util/src')
-rw-r--r-- | server/sonar-qa-util/src/main/java/org/sonarqube/qa/util/pageobjects/QualityProfilePage.java | 14 |
1 files changed, 13 insertions, 1 deletions
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; } } |