Commit cc0bf2f6 authored by Grzegorz Bizon's avatar Grzegorz Bizon 🔴

Merge branch '49179-fill-with-js-directly-qa' into 'master'

Resolve "[QA] Automation Triage 11.1.0 RC9 - Filling textarea with deploy key timeouts sometime"

Closes #49179

See merge request gitlab-org/gitlab-ce!21258
parents 9276b10d 2efd5c0b
......@@ -23,7 +23,13 @@ module QA
# After we fill the key, JS would generate another field so
# we need to use the same index to find the corresponding one.
node = all_elements(:ci_variable_input_value)[index]
# Simply run `node.set(value)` is too slow for long text here,
# so we need to run JavaScript directly to set the value.
# The code was inspired from:
execute_script("arguments[0].value = #{value.to_json}", node)
def save_variables
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment