diff options
Diffstat (limited to 'spec/support/helpers/cycle_analytics_helpers.rb')
-rw-r--r-- | spec/support/helpers/cycle_analytics_helpers.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/spec/support/helpers/cycle_analytics_helpers.rb b/spec/support/helpers/cycle_analytics_helpers.rb index 4515b96c79e..e48c8125d84 100644 --- a/spec/support/helpers/cycle_analytics_helpers.rb +++ b/spec/support/helpers/cycle_analytics_helpers.rb @@ -12,9 +12,7 @@ module CycleAnalyticsHelpers page.all('.gl-path-button').collect(&:text).map {|name_with_median| name_with_median.split("\n")[0] } end - def add_custom_stage_to_form - page.find_button(s_('CreateValueStreamForm|Add another stage')).click - + def fill_in_custom_stage_fields index = page.all('[data-testid="value-stream-stage-fields"]').length last_stage = page.all('[data-testid="value-stream-stage-fields"]').last @@ -25,6 +23,12 @@ module CycleAnalyticsHelpers end end + def add_custom_stage_to_form + page.find_button(s_('CreateValueStreamForm|Add another stage')).click + + fill_in_custom_stage_fields + end + def save_value_stream(custom_value_stream_name) fill_in 'create-value-stream-name', with: custom_value_stream_name |