2021-01-03 14:25:43 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require "spec_helper"
|
|
|
|
|
2023-03-04 22:38:38 +05:30
|
|
|
RSpec.describe 'Project wikis', :js, feature_category: :wiki do
|
2021-01-03 14:25:43 +05:30
|
|
|
let_it_be(:user) { create(:user) }
|
|
|
|
|
|
|
|
let(:wiki) { create(:project_wiki, user: user, project: project) }
|
|
|
|
let(:project) { create(:project, namespace: user.namespace, creator: user) }
|
|
|
|
|
|
|
|
it_behaves_like 'User creates wiki page'
|
|
|
|
it_behaves_like 'User deletes wiki page'
|
|
|
|
it_behaves_like 'User previews wiki changes'
|
|
|
|
it_behaves_like 'User updates wiki page'
|
|
|
|
it_behaves_like 'User uses wiki shortcuts'
|
|
|
|
it_behaves_like 'User views AsciiDoc page with includes'
|
|
|
|
it_behaves_like 'User views a wiki page'
|
|
|
|
it_behaves_like 'User views wiki pages'
|
|
|
|
it_behaves_like 'User views wiki sidebar'
|
2021-02-22 17:27:13 +05:30
|
|
|
it_behaves_like 'User views Git access wiki page'
|
2021-01-03 14:25:43 +05:30
|
|
|
end
|