debian-mirror-gitlab/spec/features/ide/user_opens_merge_request_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
622 B
Ruby
Raw Normal View History

2019-10-12 21:52:04 +05:30
# frozen_string_literal: true
2019-07-07 11:18:12 +05:30
require 'spec_helper'
2023-03-04 22:38:38 +05:30
RSpec.describe 'IDE merge request', :js, feature_category: :web_ide 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
2022-10-11 01:57:18 +05:30
stub_feature_flags(vscode_web_ide: false)
2019-07-07 11:18:12 +05:30
sign_in(user)
visit(merge_request_path(merge_request))
end
it 'user opens merge request' do
2022-07-16 23:28:13 +05:30
click_button 'Code'
2019-07-07 11:18:12 +05:30
click_link 'Open in Web IDE'
wait_for_requests
2023-01-13 00:05:48 +05:30
expect(page).not_to have_selector('.monaco-diff-editor')
2019-07-07 11:18:12 +05:30
end
end