diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-07 06:09:37 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-07 06:09:37 +0300 |
commit | 3e59f1f11a387ab3e0383f7beea8ea599291a293 (patch) | |
tree | 6fbbe3ba17b30e60e535d73912b99f794d746d01 /qa/lib | |
parent | 1e19d757e8a088e9d4aa67cc092fda87aba1cd35 (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 | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/qa/lib/gitlab/page/group/settings/usage_quotas.rb b/qa/lib/gitlab/page/group/settings/usage_quotas.rb index 5fc40a64722..5248852f6ba 100644 --- a/qa/lib/gitlab/page/group/settings/usage_quotas.rb +++ b/qa/lib/gitlab/page/group/settings/usage_quotas.rb @@ -35,7 +35,6 @@ module Gitlab span :container_registry_size div :purchased_usage_total div :storage_purchase_successful_alert, text: /You have successfully purchased a storage/ - div :additional_storage_alert, text: /purchase additional storage/ # Pending members div :pending_members @@ -56,15 +55,6 @@ module Gitlab additional_ci_minutes? end - # 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 additional_storage_available? - additional_storage_alert_element.wait_until(timeout: 5, &:present?) - rescue Watir::Wait::TimeoutError - false - end - # Waits and Checks if storage project data loaded # # @return [Boolean] True if the alert presents, false if not after 5 second wait @@ -78,7 +68,7 @@ module Gitlab # # @return [Float] Total purchased storage value in GiB def total_purchased_storage - additional_storage_alert_element.wait_until(&:present?) + ::QA::Support::WaitForRequests.wait_for_requests purchased_usage_total[/(\d+){2}.\d+/].to_f end |