summaryrefslogtreecommitdiff
path: root/qa/lib
diff options
context:
space:
mode:
Diffstat (limited to 'qa/lib')
-rw-r--r--qa/lib/gitlab/page/admin/subscription.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/qa/lib/gitlab/page/admin/subscription.rb b/qa/lib/gitlab/page/admin/subscription.rb
index 1538384f6ed..ef73bad2879 100644
--- a/qa/lib/gitlab/page/admin/subscription.rb
+++ b/qa/lib/gitlab/page/admin/subscription.rb
@@ -10,8 +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
+ button :remove_license
+ button :confirm_remove_license
p :plan
p :started
p :name
@@ -30,6 +30,11 @@ module Gitlab
terms_of_services_element.click # workaround for hidden checkbox
end
+ def remove_license_file
+ remove_license
+ confirm_remove_license
+ end
+
# Checks if a subscription record exists in subscription history table
#
# @param plan [Hash] Name of the plan