debian-mirror-gitlab/spec/features/ide/user_opens_merge_request_spec.rb
2021-03-11 19:13:27 +05:30

23 lines
513 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'IDE merge request', :js do
let(:merge_request) { create(:merge_request, :simple, source_project: project) }
let(:project) { create(:project, :public, :repository) }
let(:user) { project.owner }
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