diff --git a/qa/qa/specs/features/browser_ui/4_verify/ci_components_catalog/run_component_in_project_pipeline_spec.rb b/qa/qa/specs/features/browser_ui/4_verify/ci_components_catalog/run_component_in_project_pipeline_spec.rb
index dc289fd7f03cc1216619df6fc02473bd60166b71..ed27c68dbb0e4d19a8911d93dc3914cb8fc19b14 100644
--- a/qa/qa/specs/features/browser_ui/4_verify/ci_components_catalog/run_component_in_project_pipeline_spec.rb
+++ b/qa/qa/specs/features/browser_ui/4_verify/ci_components_catalog/run_component_in_project_pipeline_spec.rb
@@ -7,11 +7,7 @@ module QA
       let(:tag) { '1.0.0' }
       let(:test_stage) { 'test' }
       let(:test_phrase) { 'this is NOT secret!!!!!!!' }
-
-      let(:domain_name) do
-        address = Runtime::Scenario.gitlab_address
-        address.include?('https') ? address.sub!('https://', '') : address.sub!('http://', '')
-      end
+      let(:domain_name) { Support::GitlabAddress.host_with_port(with_default_port: false) }
 
       let(:component_project) do
         create(:project, :with_readme, name: 'component-project', description: 'This is a project with CI component.')