2019-10-12 21:52:04 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-07-07 11:18:12 +05:30
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-23 00:09:42 +05:30
|
|
|
RSpec.describe 'IDE merge request', :js do
|
2021-03-11 19:13:27 +05:30
|
|
|
let(:merge_request) { create(:merge_request, :simple, source_project: project) }
|
2019-07-07 11:18:12 +05:30
|
|
|
let(:project) { create(:project, :public, :repository) }
|
2022-04-04 11:22:00 +05:30
|
|
|
let(:user) { project.first_owner }
|
2019-07-07 11:18:12 +05:30
|
|
|
|
|
|
|
before do
|
|
|
|
sign_in(user)
|
|
|
|
|
|
|
|
visit(merge_request_path(merge_request))
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'user opens merge request' do
|
|
|
|
click_link 'Open in Web IDE'
|
|
|
|
|
|
|
|
wait_for_requests
|
|
|
|
|
|
|
|
expect(page).to have_selector('.monaco-diff-editor')
|
|
|
|
end
|
|
|
|
end
|