diff options
author | Constance Okoghenun <cokoghenun@gitlab.com> | 2018-05-04 11:33:23 +0100 |
---|---|---|
committer | Constance Okoghenun <cokoghenun@gitlab.com> | 2018-05-04 11:33:23 +0100 |
commit | a3b73e261f0a9e7d37b0003621355be9a6f50dc1 (patch) | |
tree | 4006d17f690c60654174dc2b4bd1e120b41ffcd9 /spec/features/projects/wiki | |
parent | c9b5c42b1862675ad43e4e8e7411f7048be8abfc (diff) | |
download | gitlab-ce-a3b73e261f0a9e7d37b0003621355be9a6f50dc1.tar.gz |
Updated user delete wiki spec
Diffstat (limited to 'spec/features/projects/wiki')
-rw-r--r-- | spec/features/projects/wiki/user_deletes_wiki_page_spec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/features/projects/wiki/user_deletes_wiki_page_spec.rb b/spec/features/projects/wiki/user_deletes_wiki_page_spec.rb index 605e332196b..fbae909a657 100644 --- a/spec/features/projects/wiki/user_deletes_wiki_page_spec.rb +++ b/spec/features/projects/wiki/user_deletes_wiki_page_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -feature 'User deletes wiki page' do +feature 'User deletes wiki page', :js do let(:user) { create(:user) } let(:project) { create(:project, namespace: user.namespace) } let(:wiki_page) { create(:wiki_page, wiki: project.wiki) } @@ -13,7 +13,8 @@ feature 'User deletes wiki page' do it 'deletes a page' do click_on('Edit') click_on('Delete') - + find('.js-modal-primary-action').click + expect(page).to have_content('Page was successfully deleted') end end |