Commit 9257df5d authored by Rémy Coutable's avatar Rémy Coutable

Fix a flaky test by not relying on flash notice content

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 392fcd10
......@@ -147,12 +147,10 @@ RSpec.describe 'Projects > Audit Events', :js do
click_button 'Save changes'
end
wait_for('Save is completed') do
page.has_content?('was successfully updated', wait: 0)
end
wait_for_all_requests
page.within('.qa-project-sidebar') do
find(:link, text: 'Security & Compliance').click
click_link 'Security & Compliance'
click_link 'Audit Events'
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