summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authorClement Ho <clemmakesapps@gmail.com>2018-02-27 18:43:51 +0000
committerClement Ho <clemmakesapps@gmail.com>2018-02-27 18:43:51 +0000
commitc066dc6c37ab678bcea0c3bed1503b2d4486b6e1 (patch)
treed01e9d1ed915d58bd00b564e99584ac59460476b /spec/support
parentb17912a8af08ada189fc4dc2f864d619ca0bed86 (diff)
parentd4867c518f2d72125c619c191fa9577dabb1ae9a (diff)
downloadgitlab-ce-remove-snippets-bundle.tar.gz
Merge branch 'master' into 'remove-snippets-bundle'remove-snippets-bundle
# Conflicts: # config/webpack.config.js
Diffstat (limited to 'spec/support')
-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 \(.+\)/)