diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-22 03:08:23 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-22 03:08:23 +0300 |
commit | bd9b2731b4ea44168d67a6b38df4e6f0475cd90e (patch) | |
tree | da397a913ff14c6d68e5fb8b27724b5f1eff6658 /qa/lib | |
parent | c097ca59a16661859dc192ca1c02c957c3025d46 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa/lib')
-rw-r--r-- | qa/lib/gitlab/page/admin/subscription.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/qa/lib/gitlab/page/admin/subscription.rb b/qa/lib/gitlab/page/admin/subscription.rb index b90a49abf4b..1538384f6ed 100644 --- a/qa/lib/gitlab/page/admin/subscription.rb +++ b/qa/lib/gitlab/page/admin/subscription.rb @@ -10,6 +10,8 @@ module Gitlab text_field :activation_code button :activate label :terms_of_services, text: /I agree that/ + link :remove_license, 'data-testid': 'license-remove-action' + button :confirm_ok_button p :plan p :started p :name @@ -21,6 +23,9 @@ module Gitlab h2 :users_over_subscription table :subscription_history + span :no_valid_license_alert, text: /no longer has a valid license/ + h3 :no_active_subscription_title, text: /do not have an active subscription/ + def accept_terms terms_of_services_element.click # workaround for hidden checkbox end @@ -39,7 +44,7 @@ module Gitlab # @param license_type [Hash] Type of the license # @option license_type [String] 'license file' # @option license_type [String] 'cloud license' - # @return [Boolean] True if record exsists, false if not + # @return [Boolean] True if record exists, false if not def has_subscription_record?(plan, users_in_license, license_type) # find any records that have a matching plan and seats and type subscription_history_element.hashes.any? do |record| |