Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2018-04-23 12:36:34 +0300
committerLin Jen-Shin <godfat@godfat.org>2018-04-23 12:36:34 +0300
commit71c6be4abb180c98b75174d4569695aee46e2b5d (patch)
tree62b77d9e5313d11d9e07a28f98c8a3f1c8feaf99 /qa
parent0446419a83b6e2641b5d1356f36945017102e97c (diff)
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