Commit a3b73e26 authored by Constance Okoghenun's avatar Constance Okoghenun

Updated user delete wiki spec

parent c9b5c42b
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
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