Commit 7fd7a57d authored by Sarah Groff Hennigh-Palermo's avatar Sarah Groff Hennigh-Palermo Committed by Dan Davison

Re-add data-qa selector

parent 8e0c7cdf
...@@ -210,6 +210,7 @@ export default { ...@@ -210,6 +210,7 @@ export default {
v-model="key" v-model="key"
:token-list="$options.tokenList" :token-list="$options.tokenList"
:label-text="__('Key')" :label-text="__('Key')"
data-qa-selector="ci_variable_key_field"
/> />
<gl-form-group v-else :label="__('Key')" label-for="ci-variable-key"> <gl-form-group v-else :label="__('Key')" label-for="ci-variable-key">
......
...@@ -23,7 +23,7 @@ module QA ...@@ -23,7 +23,7 @@ module QA
end end
def fill_variable(key, value, masked) def fill_variable(key, value, masked)
fill_element :ci_variable_key_field, key within_element(:ci_variable_key_field) { find('input').set key }
fill_element :ci_variable_value_field, value fill_element :ci_variable_value_field, value
click_ci_variable_save_button click_ci_variable_save_button
end end
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
RSpec.describe 'Verify', quarantine: { issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/229724', type: :investigating } do RSpec.describe 'Verify' do
describe 'Add or Remove CI variable via UI', :smoke do describe 'Add or Remove CI variable via UI', :smoke do
let!(:project) do let!(:project) do
Resource::Project.fabricate_via_api! do |project| Resource::Project.fabricate_via_api! do |project|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment