Commit a3b73e26 authored by Constance Okoghenun's avatar Constance Okoghenun

Updated user delete wiki spec

parent c9b5c42b
require 'spec_helper' require 'spec_helper'
feature 'User deletes wiki page' do feature 'User deletes wiki page', :js do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:project) { create(:project, namespace: user.namespace) } let(:project) { create(:project, namespace: user.namespace) }
let(:wiki_page) { create(:wiki_page, wiki: project.wiki) } let(:wiki_page) { create(:wiki_page, wiki: project.wiki) }
...@@ -13,7 +13,8 @@ feature 'User deletes wiki page' do ...@@ -13,7 +13,8 @@ feature 'User deletes wiki page' do
it 'deletes a page' do it 'deletes a page' do
click_on('Edit') click_on('Edit')
click_on('Delete') click_on('Delete')
find('.js-modal-primary-action').click
expect(page).to have_content('Page was successfully deleted') expect(page).to have_content('Page was successfully deleted')
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment