diff options
author | Felipe Artur <felipefac@gmail.com> | 2017-02-10 11:44:00 -0200 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2017-02-10 11:44:00 -0200 |
commit | d1ecbd6ce8c3dac8228397259a3fd41cbb1577f8 (patch) | |
tree | 2aa4425332b89463799b8b76fed33f4d54e97c14 | |
parent | 199b17e5569015bf76ddd9364fc555a3a385c564 (diff) | |
download | gitlab-ce-d1ecbd6ce8c3dac8228397259a3fd41cbb1577f8.tar.gz |
Fix admin_labels_spec.rb transient failureissue_27855
-rw-r--r-- | spec/features/admin/admin_labels_spec.rb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/spec/features/admin/admin_labels_spec.rb b/spec/features/admin/admin_labels_spec.rb index eaa42aad0a7..6d6c9165c83 100644 --- a/spec/features/admin/admin_labels_spec.rb +++ b/spec/features/admin/admin_labels_spec.rb @@ -35,15 +35,16 @@ RSpec.describe 'admin issues labels' do it 'deletes all labels', js: true do page.within '.labels' do page.all('.btn-remove').each do |remove| - wait_for_ajax remove.click + wait_for_ajax end end - page.within '.manage-labels-list' do - expect(page).not_to have_content('bug') - expect(page).not_to have_content('feature_label') - end + wait_for_ajax + + expect(page).to have_content("There are no labels yet") + expect(page).not_to have_content('bug') + expect(page).not_to have_content('feature_label') end end |