Commit fec817e8 authored by Mark Lapierre's avatar Mark Lapierre

Merge branch 'qa-fix-flaky-snippet-tests' into 'master'

Fix flaky snippet tests

Closes #220747 and #219422

See merge request gitlab-org/gitlab!34225
parents 5e62bda5 fa185207
...@@ -83,7 +83,11 @@ module QA ...@@ -83,7 +83,11 @@ module QA
finished_loading? finished_loading?
click_element(:snippet_action_button, action: 'Delete') click_element(:snippet_action_button, action: 'Delete')
click_element(:delete_snippet_button) click_element(:delete_snippet_button)
finished_loading? # wait for the page to reload after deletion # wait for the page to reload after deletion
wait_until(reload: false) do
has_no_element?(:delete_snippet_button) &&
has_no_element?(:snippet_action_button, action: 'Delete')
end
end end
def get_repository_uri_http def get_repository_uri_http
......
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