summaryrefslogtreecommitdiff
path: root/spec/support/shared_examples
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2019-04-12 10:50:24 +0200
committerRémy Coutable <remy@rymai.me>2019-04-12 10:50:33 +0200
commit5f36bb928bf448a30436c978cf6dc7a85f98dbf2 (patch)
tree3fc32559d793d6798dbf7c00bbc2db9306bb2feb /spec/support/shared_examples
parentf766f7afe4dd303854b7453734984b0ff8c8b3a7 (diff)
downloadgitlab-ce-5f36bb928bf448a30436c978cf6dc7a85f98dbf2.tar.gz
Fix a few specs after updating capybara and selenium-webdriver
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/support/shared_examples')
-rw-r--r--spec/support/shared_examples/features/master_manages_access_requests_shared_example.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/support/shared_examples/features/master_manages_access_requests_shared_example.rb b/spec/support/shared_examples/features/master_manages_access_requests_shared_example.rb
index 75ad948e42c..d87e5fcaa88 100644
--- a/spec/support/shared_examples/features/master_manages_access_requests_shared_example.rb
+++ b/spec/support/shared_examples/features/master_manages_access_requests_shared_example.rb
@@ -19,7 +19,7 @@ RSpec.shared_examples 'Maintainer manages access requests' do
expect_visible_access_request(entity, user)
- accept_confirm { click_on 'Grant access' }
+ click_on 'Grant access'
expect_no_visible_access_request(entity, user)
@@ -40,13 +40,11 @@ RSpec.shared_examples 'Maintainer manages access requests' do
end
def expect_visible_access_request(entity, user)
- expect(entity.requesters.exists?(user_id: user)).to be_truthy
expect(page).to have_content "Users requesting access to #{entity.name} 1"
expect(page).to have_content user.name
end
def expect_no_visible_access_request(entity, user)
- expect(entity.requesters.exists?(user_id: user)).to be_falsy
expect(page).not_to have_content "Users requesting access to #{entity.name}"
end
end