Commit 0e35db54 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch 'sh-fix-flaky-subscription-spec' into 'master'

Fix flaky user_manages_subscription_spec.rb

Closes #207835

See merge request gitlab-org/gitlab!26611
parents f23030d4 e4694412
...@@ -16,6 +16,8 @@ describe 'User manages subscription', :js do ...@@ -16,6 +16,8 @@ describe 'User manages subscription', :js do
it 'toggles subscription' do it 'toggles subscription' do
page.within('.js-issuable-subscribe-button') do page.within('.js-issuable-subscribe-button') do
wait_for_requests
expect(page).to have_css 'button:not(.is-checked)' expect(page).to have_css 'button:not(.is-checked)'
find('button:not(.is-checked)').click find('button:not(.is-checked)').click
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment