summaryrefslogtreecommitdiff
path: root/qa/qa/page/project/settings/ci_variables.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/page/project/settings/ci_variables.rb')
-rw-r--r--qa/qa/page/project/settings/ci_variables.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/qa/qa/page/project/settings/ci_variables.rb b/qa/qa/page/project/settings/ci_variables.rb
index 64a182e5b3a..2bb285d6086 100644
--- a/qa/qa/page/project/settings/ci_variables.rb
+++ b/qa/qa/page/project/settings/ci_variables.rb
@@ -52,6 +52,14 @@ module QA
end
end
+ def remove_variable(location: :first)
+ within('.ci-variable-row-body', match: location) do
+ find('button.ci-variable-row-remove-button').click
+ end
+
+ save_variables
+ end
+
private
def toggle_masked(masked_node, masked)