2020-04-16 05:09:37 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-03 14:08:28 -04:00
|
|
|
RSpec.describe 'Static Site Editor' do
|
2020-05-12 20:07:50 -04:00
|
|
|
let_it_be(:user) { create(:user) }
|
|
|
|
let_it_be(:project) { create(:project, :public, :repository) }
|
2020-04-16 05:09:37 -04:00
|
|
|
|
|
|
|
before do
|
|
|
|
project.add_maintainer(user)
|
|
|
|
sign_in(user)
|
|
|
|
|
|
|
|
visit project_show_sse_path(project, 'master/README.md')
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'renders Static Site Editor page' do
|
|
|
|
expect(page).to have_selector('#static-site-editor')
|
|
|
|
end
|
|
|
|
end
|