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
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-04-28 18:09:59 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-04-28 18:09:59 +0300
commite0529f76a36026dc4bd51fbec1e5c52e7f3866e1 (patch)
treeac809b949e3257d89cac17c3409aadddd0a740cb /qa/lib/gitlab
parent72cb3bee798655c2d370dfedf3c04665aaa43aa3 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa/lib/gitlab')
-rw-r--r--qa/lib/gitlab/page/group/settings/billing.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/qa/lib/gitlab/page/group/settings/billing.rb b/qa/lib/gitlab/page/group/settings/billing.rb
index d0d73278890..ec4567cd4a6 100644
--- a/qa/lib/gitlab/page/group/settings/billing.rb
+++ b/qa/lib/gitlab/page/group/settings/billing.rb
@@ -29,6 +29,15 @@ module Gitlab
refresh_seats
::QA::Support::WaitForRequests.wait_for_requests
end
+
+ # Waits for subscription to be synced and UI to be updated
+ #
+ # @param subscription_plan [String]
+ def wait_for_subscription(subscription_plan, page:)
+ ::QA::Support::Waiter.wait_until(max_duration: 30, sleep_interval: 2, reload_page: page) do
+ billing_plan_header.match?(/currently using the #{subscription_plan} plan/i)
+ end
+ end
end
end
end