summaryrefslogtreecommitdiff
path: root/spec/support/features
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2018-02-18 21:54:55 +0100
committerMatija Čupić <matteeyah@gmail.com>2018-02-22 23:09:24 +0100
commitc65529e8f66bf5367ad2d989a556bf766701d7b9 (patch)
tree51a763cfd87e918128390a83e1439eac0f35c4f6 /spec/support/features
parent4319b15a78be70ccabb31a25ffba37f77de27b28 (diff)
downloadgitlab-ce-c65529e8f66bf5367ad2d989a556bf766701d7b9.tar.gz
Skip variables duplicates validator if variable is already a duplicate
Diffstat (limited to 'spec/support/features')
-rw-r--r--spec/support/features/variable_list_shared_examples.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/support/features/variable_list_shared_examples.rb b/spec/support/features/variable_list_shared_examples.rb
index 0d8f7a7aae6..f7f851eb1eb 100644
--- a/spec/support/features/variable_list_shared_examples.rb
+++ b/spec/support/features/variable_list_shared_examples.rb
@@ -261,6 +261,8 @@ shared_examples 'variable list' do
click_button('Save variables')
wait_for_requests
+ expect(all('.js-ci-variable-list-section .js-ci-variable-error-box ul li').count).to eq(1)
+
# We check the first row because it re-sorts to alphabetical order on refresh
page.within('.js-ci-variable-list-section') do
expect(find('.js-ci-variable-error-box')).to have_content(/Validation failed Variables have duplicate values \(.+\)/)