Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-06-13 00:07:58 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-06-13 00:07:58 +0300
commit8a2bf936e504201d7332de0080ef1f857bc9338e (patch)
treed35145cf249f069899cc7d2359c369a9e253957a /qa
parent949ed51c6d20ba24e1f508cae9a65b86114bff62 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa')
-rw-r--r--qa/qa/page/main/login.rb9
-rw-r--r--qa/qa/support/wait_for_requests.rb6
2 files changed, 9 insertions, 6 deletions
diff --git a/qa/qa/page/main/login.rb b/qa/qa/page/main/login.rb
index d79d2766248..3a836210dea 100644
--- a/qa/qa/page/main/login.rb
+++ b/qa/qa/page/main/login.rb
@@ -259,13 +259,10 @@ module QA
wait_for_gitlab_to_respond
Page::Main::Menu.perform(&:enable_new_navigation) if Runtime::Env.super_sidebar_enabled?
- Page::Main::Menu.validate_elements_present! unless skip_page_validation
- end
- def wait_for_gitlab_to_respond
- wait_until(sleep_interval: 5, message: '502 - GitLab is taking too much time to respond') do
- has_no_text?('GitLab is taking too much time to respond')
- end
+ wait_for_gitlab_to_respond
+
+ Page::Main::Menu.validate_elements_present! unless skip_page_validation
end
def fill_in_credential(user)
diff --git a/qa/qa/support/wait_for_requests.rb b/qa/qa/support/wait_for_requests.rb
index 2856602629a..ef7875eb838 100644
--- a/qa/qa/support/wait_for_requests.rb
+++ b/qa/qa/support/wait_for_requests.rb
@@ -39,6 +39,12 @@ module QA
Capybara.page.has_no_css?('.gl-spinner', wait: wait)
end
end
+
+ def wait_for_gitlab_to_respond
+ Waiter.wait_until(sleep_interval: 5, message: '502 - GitLab is taking too much time to respond') do
+ Capybara.page.has_no_text?('GitLab is taking too much time to respond')
+ end
+ end
end
end
end