diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-13 21:09:27 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-13 21:09:27 +0300 |
commit | 5248c5e2212b8e42b28b23e6839d69db0006829b (patch) | |
tree | f989d4b4cd06fc5dc28c024a5f230b42b0af179b /qa/lib | |
parent | 0d55697d64b5f053bbd0f69da2962e7478097de3 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa/lib')
-rw-r--r-- | qa/lib/gitlab/page/group/settings/usage_quotas.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qa/lib/gitlab/page/group/settings/usage_quotas.rb b/qa/lib/gitlab/page/group/settings/usage_quotas.rb index 786c0e83853..04aa1b779ce 100644 --- a/qa/lib/gitlab/page/group/settings/usage_quotas.rb +++ b/qa/lib/gitlab/page/group/settings/usage_quotas.rb @@ -35,7 +35,7 @@ module Gitlab div :purchased_usage_total_free # Different UI for free namespace span :purchased_usage_total div :storage_purchase_successful_alert, text: /You have successfully purchased a storage/ - h2 :storage_available_alert, text: /purchased storage is available/ + div :additional_storage_alert, text: /purchase additional storage/ def plan_ci_limits plan_ci_minutes[/(\d+){2}/] @@ -48,8 +48,8 @@ module Gitlab # Waits and Checks if storage available alert presents on the page # # @return [Boolean] True if the alert presents, false if not after 5 second wait - def purchased_storage_available? - storage_available_alert_element.wait_until(timeout: 5, &:present?) + def additional_storage_available? + additional_storage_alert_element.wait_until(timeout: 5, &:present?) rescue Watir::Wait::TimeoutError false end @@ -67,7 +67,7 @@ module Gitlab # # @return [Float] Total purchased storage value in GiB def total_purchased_storage(free_name_space = true) - storage_available_alert_element.wait_until(&:present?) + additional_storage_alert_element.wait_until(&:present?) if free_name_space purchased_usage_total_free.split('/').last.match(/\d+\.\d+/)[0].to_f |