aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/test/java/org/sonarqube/pageobjects/ProjectsManagementPage.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/test/java/org/sonarqube/pageobjects/ProjectsManagementPage.java')
-rw-r--r--tests/src/test/java/org/sonarqube/pageobjects/ProjectsManagementPage.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/src/test/java/org/sonarqube/pageobjects/ProjectsManagementPage.java b/tests/src/test/java/org/sonarqube/pageobjects/ProjectsManagementPage.java
index ea5ff5c06db..eded1c27bfc 100644
--- a/tests/src/test/java/org/sonarqube/pageobjects/ProjectsManagementPage.java
+++ b/tests/src/test/java/org/sonarqube/pageobjects/ProjectsManagementPage.java
@@ -19,6 +19,8 @@
*/
package org.sonarqube.pageobjects;
+import com.codeborne.selenide.CollectionCondition;
+
import static com.codeborne.selenide.Condition.exist;
import static com.codeborne.selenide.Condition.text;
import static com.codeborne.selenide.Selenide.$;
@@ -48,4 +50,14 @@ public class ProjectsManagementPage {
$("#create-project-submit").submit();
return this;
}
+
+ public ProjectsManagementPage bulkApplyPermissionTemplate(String template) {
+ $(".js-bulk-apply-permission-template").should(exist).click();
+ $(".modal .select2-choice").should(exist).click();
+ $$(".select2-results li")
+ .shouldHave(CollectionCondition.sizeGreaterThan(0))
+ .findBy(text("foo-template")).should(exist).click();
+ $(".modal .js-apply").should(exist).click();
+ return this;
+ }
}