summaryrefslogtreecommitdiff
path: root/spec/features/protected_branches_spec.rb
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2016-08-03 22:32:57 -0500
committerAlfredo Sumaran <alfredo@gitlab.com>2016-08-05 17:19:01 -0500
commitc2912b46f8f51567fa7c18c90c493a94c1ffad30 (patch)
treedb8463544b84f422995a494a7a766546f3500803 /spec/features/protected_branches_spec.rb
parente1d86ec9149a328bf975f55d003b3c29806cadbb (diff)
downloadgitlab-ce-c2912b46f8f51567fa7c18c90c493a94c1ffad30.tar.gz
Add custom css class to each dropdown to fix failing spec
Diffstat (limited to 'spec/features/protected_branches_spec.rb')
-rw-r--r--spec/features/protected_branches_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/features/protected_branches_spec.rb b/spec/features/protected_branches_spec.rb
index 2a6f3b3bb1c..ebbbca5d2f4 100644
--- a/spec/features/protected_branches_spec.rb
+++ b/spec/features/protected_branches_spec.rb
@@ -11,7 +11,7 @@ feature 'Projected Branches', feature: true, js: true do
def set_protected_branch_name(branch_name)
find(".js-protected-branch-select").click
find(".dropdown-input-field").set(branch_name)
- click_on "Create Protected Branch: #{branch_name}"
+ click_on "Create wildcard #{branch_name}"
end
describe "explicit protected branches" do
@@ -108,7 +108,7 @@ feature 'Projected Branches', feature: true, js: true do
within(".protected-branches-list") do
find(".js-allowed-to-push").click
- within('.dropdown-menu.push') { click_on access_type_name }
+ within('.js-allowed-to-push-container') { click_on access_type_name }
end
wait_for_ajax
@@ -139,7 +139,7 @@ feature 'Projected Branches', feature: true, js: true do
within(".protected-branches-list") do
find(".js-allowed-to-merge").click
- within('.dropdown-menu.merge') { click_on access_type_name }
+ within('.js-allowed-to-merge-container') { click_on access_type_name }
end
wait_for_ajax