From f1e0774f24420b65a4a75ac287278feb0d02e480 Mon Sep 17 00:00:00 2001
From: Desiree Chevalier <dchevalier@gitlab.com>
Date: Wed, 16 Oct 2024 13:58:47 -0400
Subject: [PATCH] Update value stream e2e spec

---
 qa/qa/ee/page/value_stream_analytics.rb | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/qa/qa/ee/page/value_stream_analytics.rb b/qa/qa/ee/page/value_stream_analytics.rb
index ba0476143099c..f3751253955b9 100644
--- a/qa/qa/ee/page/value_stream_analytics.rb
+++ b/qa/qa/ee/page/value_stream_analytics.rb
@@ -15,7 +15,6 @@ def self.included(base)
             end
 
             view "ee/app/assets/javascripts/analytics/cycle_analytics/components/value_stream_form_content.vue" do
-              element 'value-stream-form-modal'
               element 'create-value-stream-name-input'
               element 'vsa-preset-selector'
             end
@@ -144,17 +143,19 @@ def select_value_stream_type(value = 'default')
         #
         # @return [void]
         def create_value_stream
-          within_element('value-stream-form-modal') do
-            # footer buttons are generic UI components from gitlab/ui
-            find_button("New value stream").click
-          end
+          # footer buttons are generic UI components from gitlab/ui
+          find_button("New value stream").click
         end
 
         # Add another stage to custom vsa template
         #
         # @return [void]
         def add_another_stage
-          within_element('value-stream-form-modal') do
+          # footer buttons are generic UI components from gitlab/ui
+          # Remove else once vsa_standalone_settings_page feature flag is removed
+          if has_button?("Add a stage")
+            find_button("Add a stage").click
+          else
             find_button("Add another stage").click
           end
         end
-- 
GitLab