Commit 29e4bf30 authored by Vitali Tatarintev's avatar Vitali Tatarintev

Merge branch '330689-fix-flaky-spec' into 'master'

Fix a flaky test by not relying on flash notice content

See merge request gitlab-org/gitlab!62094
parents 6bba2178 9257df5d
...@@ -147,12 +147,10 @@ RSpec.describe 'Projects > Audit Events', :js do ...@@ -147,12 +147,10 @@ RSpec.describe 'Projects > Audit Events', :js do
click_button 'Save changes' click_button 'Save changes'
end end
wait_for('Save is completed') do wait_for_all_requests
page.has_content?('was successfully updated', wait: 0)
end
page.within('.qa-project-sidebar') do page.within('.qa-project-sidebar') do
find(:link, text: 'Security & Compliance').click click_link 'Security & Compliance'
click_link 'Audit Events' click_link 'Audit Events'
end end
......
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