summaryrefslogtreecommitdiff
path: root/spec/support/shared_examples/features
diff options
context:
space:
mode:
authorJose Ivan Vargas <jvargas@gitlab.com>2017-10-11 16:54:05 -0500
committerJose Ivan Vargas <jvargas@gitlab.com>2017-10-11 16:54:05 -0500
commit3ac444b8da3a570cf79c3f9532e6e2d60b4033bd (patch)
tree517d3e837e952281f2dcfe09094fa538521e216c /spec/support/shared_examples/features
parent59bb5bc54f6b5d502cd9761c230134e1ead73364 (diff)
downloadgitlab-ce-3ac444b8da3a570cf79c3f9532e6e2d60b4033bd.tar.gz
Fix trigger elements and element is not clickable at this position
Diffstat (limited to 'spec/support/shared_examples/features')
-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 72bb0f2e9b9..5fde91512da 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
@@ -34,7 +34,7 @@ shared_examples "protected branches > access control > CE" do
within('.js-allowed-to-push-container') do
expect(first("li")).to have_content("Roles")
- click_on access_type_name
+ find(:link, access_type_name).click
end
end
@@ -79,7 +79,7 @@ shared_examples "protected branches > access control > CE" do
within('.js-allowed-to-merge-container') do
expect(first("li")).to have_content("Roles")
- click_on access_type_name
+ find(:link, access_type_name).click
end
end