summaryrefslogtreecommitdiff
path: root/spec/support/shared_examples/features/protected_branches_access_control_ce.rb
diff options
context:
space:
mode:
authorkushalpandya <kushal@gitlab.com>2017-07-19 18:17:55 +0530
committerkushalpandya <kushal@gitlab.com>2017-07-19 18:17:55 +0530
commitde7db606c1e019246eb699ef22dda03b7b3b3668 (patch)
tree0ed887acbec144818b05428868bdeb2dc7c6b421 /spec/support/shared_examples/features/protected_branches_access_control_ce.rb
parentc2c255e8d7f08434ef6c2e5868fcab2fc5ad0d8e (diff)
downloadgitlab-ce-de7db606c1e019246eb699ef22dda03b7b3b3668.tar.gz
Use JS class for selector
Diffstat (limited to 'spec/support/shared_examples/features/protected_branches_access_control_ce.rb')
-rw-r--r--spec/support/shared_examples/features/protected_branches_access_control_ce.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/shared_examples/features/protected_branches_access_control_ce.rb b/spec/support/shared_examples/features/protected_branches_access_control_ce.rb
index 66e598e2691..d5bc12f3bc5 100644
--- a/spec/support/shared_examples/features/protected_branches_access_control_ce.rb
+++ b/spec/support/shared_examples/features/protected_branches_access_control_ce.rb
@@ -5,7 +5,7 @@ shared_examples "protected branches > access control > CE" do
set_protected_branch_name('master')
- within('.new_protected_branch') do
+ within('.js-new-protected-branch') do
allowed_to_push_button = find(".js-allowed-to-push")
unless allowed_to_push_button.text == access_type_name
@@ -50,7 +50,7 @@ shared_examples "protected branches > access control > CE" do
set_protected_branch_name('master')
- within('.new_protected_branch') do
+ within('.js-new-protected-branch') do
allowed_to_merge_button = find(".js-allowed-to-merge")
unless allowed_to_merge_button.text == access_type_name