diff options
Diffstat (limited to 'qa/lib/gitlab/page/group')
-rw-r--r-- | qa/lib/gitlab/page/group/settings/usage_quotas.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/qa/lib/gitlab/page/group/settings/usage_quotas.rb b/qa/lib/gitlab/page/group/settings/usage_quotas.rb index 8540bce3da8..04aa1b779ce 100644 --- a/qa/lib/gitlab/page/group/settings/usage_quotas.rb +++ b/qa/lib/gitlab/page/group/settings/usage_quotas.rb @@ -35,21 +35,21 @@ 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_element.span.text[%r{([^/ ]+)$}] + plan_ci_minutes[/(\d+){2}/] end def additional_ci_limits - additional_ci_minutes_element.span.text[%r{([^/ ]+)$}] + additional_ci_minutes[/(\d+){2}/] 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 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 |