diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-09-04 18:08:40 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-09-04 18:08:40 +0300 |
commit | 001c23394e75d0e797261527779294ad11542f6d (patch) | |
tree | 20d27fcee25e14242ee85cdb0b9ad794ecc0c103 /spec/support_specs | |
parent | 25f102516f8d77c397c768baa2e550779cc9c60b (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/support_specs')
-rw-r--r-- | spec/support_specs/capybara_wait_for_all_requests_spec.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/support_specs/capybara_wait_for_all_requests_spec.rb b/spec/support_specs/capybara_wait_for_all_requests_spec.rb index ddd4be6c644..64b89ba0b56 100644 --- a/spec/support_specs/capybara_wait_for_all_requests_spec.rb +++ b/spec/support_specs/capybara_wait_for_all_requests_spec.rb @@ -23,37 +23,37 @@ RSpec.describe 'capybara_wait_for_all_requests', feature_category: :tooling do # end end - context 'for Capybara::Node::Actions::WaitForAllRequestsAfterClickButton' do + context 'for Capybara::Node::Actions::WaitForRequestsAfterClickButton' do let(:node) do Class.new do def click_button(locator = nil, **_options) locator end - prepend Capybara::Node::Actions::WaitForAllRequestsAfterClickButton + prepend Capybara::Node::Actions::WaitForRequestsAfterClickButton end.new end - it 'waits for all requests after a click button' do - expect(node).to receive(:wait_for_all_requests) + it 'waits for requests after a click button' do + expect(node).to receive(:wait_for_requests) node.click_button end end - context 'for Capybara::Node::Actions::WaitForAllRequestsAfterClickLink' do + context 'for Capybara::Node::Actions::WaitForRequestsAfterClickLink' do let(:node) do Class.new do def click_link(locator = nil, **_options) locator end - prepend Capybara::Node::Actions::WaitForAllRequestsAfterClickLink + prepend Capybara::Node::Actions::WaitForRequestsAfterClickLink end.new end - it 'waits for all requests after a click link' do - expect(node).to receive(:wait_for_all_requests) + it 'waits for requests after a click link' do + expect(node).to receive(:wait_for_requests) node.click_link end |