diff --git a/ee/app/components/namespaces/storage/limit_alert_component.html.haml b/ee/app/components/namespaces/storage/limit_alert_component.html.haml index 317c987e9776bb66d9400f8c4e37ae8fa6702589..9aee82943bc6847f0953172c9de869ef624e05fe 100644 --- a/ee/app/components/namespaces/storage/limit_alert_component.html.haml +++ b/ee/app/components/namespaces/storage/limit_alert_component.html.haml @@ -7,7 +7,7 @@ dismiss_endpoint: alert_callout_path, group_id: root_namespace_id, defer_links: "true", - testid: 'storage-limit-message' }}) do |c| + testid: 'storage-limit-alert-content' }}) do |c| = c.with_body do - alert_message.each do |paragraph| %p diff --git a/qa/qa/ee/page/alert/storage_limit.rb b/qa/qa/ee/page/alert/storage_limit.rb new file mode 100644 index 0000000000000000000000000000000000000000..60922164cf8927392765f635fb71c493314c6fed --- /dev/null +++ b/qa/qa/ee/page/alert/storage_limit.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module QA + module EE + module Page + module Alert + class StorageLimit < QA::Page::Base + view 'ee/app/components/namespaces/storage/limit_alert_component.html.haml' do + element 'storage-limit-alert-content' + end + + def storage_limit_message + find_element('storage-limit-alert-content').text + end + end + end + end + end +end diff --git a/qa/qa/page/alert/storage_limit.rb b/qa/qa/page/alert/storage_limit.rb deleted file mode 100644 index 31f4bd249fb10cce113a93eed7087e45a863eb2d..0000000000000000000000000000000000000000 --- a/qa/qa/page/alert/storage_limit.rb +++ /dev/null @@ -1,11 +0,0 @@ -# frozen_string_literal: true - -module QA - module Page - module Alert - class StorageLimit < Chemlab::Page - element :storage_limit_message - end - end - end -end diff --git a/qa/qa/specs/features/ee/browser_ui/11_fulfillment/utilization/namespace_storage_limit_spec.rb b/qa/qa/specs/features/ee/browser_ui/11_fulfillment/utilization/namespace_storage_limit_spec.rb index a91a88dbe07a0abc92770fff0cc645e7b1b6e336..742a47ef7ef6fa5a6bd2f7771f1fd253e1b454cb 100644 --- a/qa/qa/specs/features/ee/browser_ui/11_fulfillment/utilization/namespace_storage_limit_spec.rb +++ b/qa/qa/specs/features/ee/browser_ui/11_fulfillment/utilization/namespace_storage_limit_spec.rb @@ -92,7 +92,7 @@ module QA end def expect_storage_limit_message(message, error_message) - Page::Alert::StorageLimit.perform do |storage_limit_alert| + EE::Page::Alert::StorageLimit.perform do |storage_limit_alert| Support::Retrier.retry_until( max_duration: 300, sleep_interval: 10,