diff options
Diffstat (limited to 'spec/features/populate_new_pipeline_vars_with_params_spec.rb')
-rw-r--r-- | spec/features/populate_new_pipeline_vars_with_params_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/features/populate_new_pipeline_vars_with_params_spec.rb b/spec/features/populate_new_pipeline_vars_with_params_spec.rb index bcda30ccb84..8bb5f2514ef 100644 --- a/spec/features/populate_new_pipeline_vars_with_params_spec.rb +++ b/spec/features/populate_new_pipeline_vars_with_params_spec.rb @@ -15,16 +15,16 @@ RSpec.describe "Populate new pipeline CI variables with url params", :js, featur end it "var[key1]=value1 populates env_var variable correctly" do - page.within(all("[data-testid='ci-variable-row']")[0]) do - expect(find("[data-testid='pipeline-form-ci-variable-key']").value).to eq('key1') - expect(find("[data-testid='pipeline-form-ci-variable-value']").value).to eq('value1') + page.within(all("[data-testid='ci-variable-row-container']")[0]) do + expect(find("[data-testid='pipeline-form-ci-variable-key-field']").value).to eq('key1') + expect(find("[data-testid='pipeline-form-ci-variable-value-field']").value).to eq('value1') end end it "file_var[key2]=value2 populates file variable correctly" do - page.within(all("[data-testid='ci-variable-row']")[1]) do - expect(find("[data-testid='pipeline-form-ci-variable-key']").value).to eq('key2') - expect(find("[data-testid='pipeline-form-ci-variable-value']").value).to eq('value2') + page.within(all("[data-testid='ci-variable-row-container']")[1]) do + expect(find("[data-testid='pipeline-form-ci-variable-key-field']").value).to eq('key2') + expect(find("[data-testid='pipeline-form-ci-variable-value-field']").value).to eq('value2') end end end |