Commit 9bf74429 authored by Rémy Coutable's avatar Rémy Coutable

Add waiting before creating variable

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 952a29f0
......@@ -283,6 +283,8 @@ RSpec.shared_examples 'variable list' do
end
def fill_variable(key, value, protected: false, masked: false)
wait_for_requests
page.within('#add-ci-variable') do
find('[data-qa-selector="ci_variable_key_field"] input').set(key)
find('[data-qa-selector="ci_variable_value_field"]').set(value) if value.present?
......
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