diff options
Diffstat (limited to 'qa/lib/gitlab/page/group/settings/billing.rb')
-rw-r--r-- | qa/lib/gitlab/page/group/settings/billing.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/qa/lib/gitlab/page/group/settings/billing.rb b/qa/lib/gitlab/page/group/settings/billing.rb index 45a67526682..0d25a012db3 100644 --- a/qa/lib/gitlab/page/group/settings/billing.rb +++ b/qa/lib/gitlab/page/group/settings/billing.rb @@ -33,10 +33,13 @@ module Gitlab # Waits for subscription to be synced and UI to be updated # # @param subscription_plan [String] - def wait_for_subscription(subscription_plan, page:) + def wait_for_subscription(subscription_plan) ::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 + max_duration: ::QA::Support::Helpers::Zuora::ZUORA_TIMEOUT, + sleep_interval: 2, + reload_page: Chemlab.configuration.browser.session, + message: "Subscription plan '#{subscription_plan}' failed to appear" + ) do billing_plan_header.match?(/currently using the #{subscription_plan} saas plan/i) end end |