summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-06-10 09:08:35 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-06-10 09:08:35 +0000
commit23ff717a29540bb1d4b0068f164b5f9df99386bf (patch)
tree1d31f1766f3a5e4748cd806cf655d72d35cb59dc /qa
parentc2879da99d02b4e49a1394f5699a2963f2651f18 (diff)
downloadgitlab-ce-23ff717a29540bb1d4b0068f164b5f9df99386bf.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa')
-rw-r--r--qa/qa/page/dashboard/snippet/show.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/qa/qa/page/dashboard/snippet/show.rb b/qa/qa/page/dashboard/snippet/show.rb
index 9c9159624f7..da494ae70ec 100644
--- a/qa/qa/page/dashboard/snippet/show.rb
+++ b/qa/qa/page/dashboard/snippet/show.rb
@@ -83,7 +83,11 @@ module QA
finished_loading?
click_element(:snippet_action_button, action: 'Delete')
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
def get_repository_uri_http