diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2018-02-27 09:51:49 +0000 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2018-02-27 09:51:49 +0000 |
commit | 1e04603f9322125ae0d725e1bca6da76a1337729 (patch) | |
tree | 1890de8cfcddce7bc35437da644244557f9d16a3 /spec/support | |
parent | 214e601a9f01b5ee525f0f3d3396ab6ff4961b07 (diff) | |
parent | f2695aa84b68cd905eff90c598e452cbf63d98ed (diff) | |
download | gitlab-ce-1e04603f9322125ae0d725e1bca6da76a1337729.tar.gz |
Merge branch '43275-improve-variables-validation-message' into 'master'
Resolve "Improve Variables validation message"
Closes #43275
See merge request gitlab-org/gitlab-ce!17135
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/features/variable_list_shared_examples.rb | 2 |
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 \(.+\)/) |