From 3ac444b8da3a570cf79c3f9532e6e2d60b4033bd Mon Sep 17 00:00:00 2001 From: Jose Ivan Vargas Date: Wed, 11 Oct 2017 16:54:05 -0500 Subject: Fix trigger elements and element is not clickable at this position --- .../shared_examples/features/protected_branches_access_control_ce.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/support/shared_examples/features') 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 -- cgit v1.2.1