2019-07-25 01:24:42 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-04-11 04:54:20 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-16 14:09:01 -04:00
|
|
|
RSpec.describe 'IDE merge request', :js do
|
2021-02-09 07:09:48 -05:00
|
|
|
let(:merge_request) { create(:merge_request, :simple, source_project: project) }
|
2019-04-11 04:54:20 -04:00
|
|
|
let(:project) { create(:project, :public, :repository) }
|
2022-01-24 19:11:49 -05:00
|
|
|
let(:user) { project.first_owner }
|
2019-04-11 04:54:20 -04:00
|
|
|
|
|
|
|
before do
|
|
|
|
sign_in(user)
|
|
|
|
|
|
|
|
visit(merge_request_path(merge_request))
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'user opens merge request' do
|
2022-04-28 11:10:08 -04:00
|
|
|
click_button 'Code'
|
2019-04-11 04:54:20 -04:00
|
|
|
click_link 'Open in Web IDE'
|
|
|
|
|
|
|
|
wait_for_requests
|
|
|
|
|
|
|
|
expect(page).to have_selector('.monaco-diff-editor')
|
|
|
|
end
|
|
|
|
end
|