summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2018-04-23 17:36:34 +0800
committerLin Jen-Shin <godfat@godfat.org>2018-04-23 17:36:34 +0800
commit71c6be4abb180c98b75174d4569695aee46e2b5d (patch)
tree62b77d9e5313d11d9e07a28f98c8a3f1c8feaf99 /qa
parent0446419a83b6e2641b5d1356f36945017102e97c (diff)
downloadgitlab-ce-71c6be4abb180c98b75174d4569695aee46e2b5d.tar.gz
Use all_elements instead
Diffstat (limited to 'qa')
-rw-r--r--qa/qa/page/project/settings/secret_variables.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/qa/qa/page/project/settings/secret_variables.rb b/qa/qa/page/project/settings/secret_variables.rb
index ba3633cff9e..d2f5d5a9060 100644
--- a/qa/qa/page/project/settings/secret_variables.rb
+++ b/qa/qa/page/project/settings/secret_variables.rb
@@ -17,13 +17,13 @@ module QA
end
def fill_variable(key, value)
- keys = all('.qa-ci-variable-input-key')
+ keys = all_elements(:ci_variable_input_key)
index = keys.size - 1
# After we fill the key, JS would generate another field so
# we need to use the same index to find the corresponding one.
keys[index].set(key)
- all('.qa-ci-variable-input-value')[index].set(value)
+ all_elements(:ci_variable_input_value)[index].set(value)
end
def save_variables