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/lib
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-05-17 18:10:27 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-05-17 18:10:27 +0300
commit30785cadee10a5deaa45ada13def96bcfa6663b0 (patch)
tree5c00df23827cba5b50177698923313a5e38d1c89 /qa/lib
parent43771438e9ccf20d1b6cf12b690e63844d7c3d49 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa/lib')
-rw-r--r--qa/lib/gitlab/page/group/settings/billing.rb4
-rw-r--r--qa/lib/gitlab/page/group/settings/usage_quotas.rb12
2 files changed, 9 insertions, 7 deletions
diff --git a/qa/lib/gitlab/page/group/settings/billing.rb b/qa/lib/gitlab/page/group/settings/billing.rb
index 1cb31c995f6..45a67526682 100644
--- a/qa/lib/gitlab/page/group/settings/billing.rb
+++ b/qa/lib/gitlab/page/group/settings/billing.rb
@@ -34,7 +34,9 @@ module Gitlab
#
# @param subscription_plan [String]
def wait_for_subscription(subscription_plan, page:)
- ::QA::Support::Waiter.wait_until(max_duration: 30, sleep_interval: 3, reload_page: page) do
+ ::QA::Support::Waiter.wait_until(
+ max_duration: ::QA::Support::Helpers::Zuora::ZUORA_TIMEOUT, sleep_interval: 2, reload_page: page,
+ message: "Subscription plan '#{subscription_plan}' failed to appear") do
billing_plan_header.match?(/currently using the #{subscription_plan} saas plan/i)
end
end
diff --git a/qa/lib/gitlab/page/group/settings/usage_quotas.rb b/qa/lib/gitlab/page/group/settings/usage_quotas.rb
index a6d9cfa7846..ce540b5ee56 100644
--- a/qa/lib/gitlab/page/group/settings/usage_quotas.rb
+++ b/qa/lib/gitlab/page/group/settings/usage_quotas.rb
@@ -50,6 +50,12 @@ module Gitlab
additional_ci_minutes[/(\d+){2}/]
end
+ def additional_ci_minutes_added?
+ # When opening the Usage quotas page, Seats quota tab is opened briefly even when url is to a different tab
+ ::QA::Support::WaitForRequests.wait_for_requests
+ additional_ci_minutes?
+ end
+
# Waits and Checks if storage available alert presents on the page
#
# @return [Boolean] True if the alert presents, false if not after 5 second wait
@@ -76,12 +82,6 @@ module Gitlab
purchased_usage_total[/(\d+){2}.\d+/].to_f
end
-
- def additional_ci_minutes_added?
- # When opening the Usage quotas page, Seats quota tab is opened briefly even when url is to a different tab
- ::QA::Support::WaitForRequests.wait_for_requests
- additional_ci_minutes?
- end
end
end
end