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:
Diffstat (limited to 'qa/lib/gitlab/page/group/settings/billing.rb')
-rw-r--r--qa/lib/gitlab/page/group/settings/billing.rb27
1 files changed, 22 insertions, 5 deletions
diff --git a/qa/lib/gitlab/page/group/settings/billing.rb b/qa/lib/gitlab/page/group/settings/billing.rb
index 24d327502f8..d0d73278890 100644
--- a/qa/lib/gitlab/page/group/settings/billing.rb
+++ b/qa/lib/gitlab/page/group/settings/billing.rb
@@ -5,13 +5,30 @@ module Gitlab
module Group
module Settings
class Billing < Chemlab::Page
- # TODO: Supplant with data-qa-selectors
- h4 :billing_plan_header, css: 'div.billing-plan-header h4'
-
+ h4 :billing_plan_header
link :start_your_free_trial
+ link :upgrade_to_premium
+ link :upgrade_to_ultimate
+
+ # Subscription details
+ strong :subscription_header
+ button :refresh_seats
+
+ # Usage
+ p :seats_in_subscription
+ p :seats_currently_in_use
+ link :see_seats_usage
+ p :max_seats_used
+ p :seats_owed
+
+ # Billing
+ p :subscription_start_date
+ p :subscription_end_date
- link :upgrade_to_premium, css: '[data-testid="plan-card-premium"] a.billing-cta-purchase-new'
- link :upgrade_to_ultimate, css: '[data-testid="plan-card-ultimate"] a.billing-cta-purchase-new'
+ def refresh_subscription_seats
+ refresh_seats
+ ::QA::Support::WaitForRequests.wait_for_requests
+ end
end
end
end