summaryrefslogtreecommitdiff
path: root/qa/qa/page/project/pipeline/new.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/page/project/pipeline/new.rb')
-rw-r--r--qa/qa/page/project/pipeline/new.rb12
1 files changed, 11 insertions, 1 deletions
diff --git a/qa/qa/page/project/pipeline/new.rb b/qa/qa/page/project/pipeline/new.rb
index 644a21b46e9..96a48e6240a 100644
--- a/qa/qa/page/project/pipeline/new.rb
+++ b/qa/qa/page/project/pipeline/new.rb
@@ -7,10 +7,20 @@ module QA
class New < QA::Page::Base
view 'app/assets/javascripts/pipeline_new/components/pipeline_new_form.vue' do
element :run_pipeline_button, required: true
+ element :ci_variable_row_container
+ element :ci_variable_key_field
+ element :ci_variable_value_field
end
def click_run_pipeline_button
- click_element :run_pipeline_button
+ click_element(:run_pipeline_button, Page::Project::Pipeline::Show)
+ end
+
+ def add_variable(key, value, row_index: 0)
+ within_element_by_index(:ci_variable_row_container, row_index) do
+ fill_element(:ci_variable_key_field, key)
+ fill_element(:ci_variable_value_field, value)
+ end
end
end
end