diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-16 12:09:12 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-16 12:09:12 +0000 |
commit | cbfe03ae04a52d9825ff7cbeccdfe5d313adf6a2 (patch) | |
tree | e4879b35d019d3bbba1689f3ac4c48b81bf7b451 /qa/qa/specs | |
parent | 3fd97b4bba24ca412112aad025a38a32c7a6cf8c (diff) | |
download | gitlab-ce-cbfe03ae04a52d9825ff7cbeccdfe5d313adf6a2.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa/qa/specs')
-rw-r--r-- | qa/qa/specs/features/browser_ui/3_create/web_ide/review_merge_request_spec.rb | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/qa/qa/specs/features/browser_ui/3_create/web_ide/review_merge_request_spec.rb b/qa/qa/specs/features/browser_ui/3_create/web_ide/review_merge_request_spec.rb new file mode 100644 index 00000000000..c37ad6d4318 --- /dev/null +++ b/qa/qa/specs/features/browser_ui/3_create/web_ide/review_merge_request_spec.rb @@ -0,0 +1,42 @@ +# frozen_string_literal: true + +module QA + context 'Create', quarantine: { type: :new } do + describe 'Review a merge request in Web IDE' do + let(:new_file) { 'awesome_new_file.txt' } + let(:review_text) { 'Reviewed ' } + + let(:merge_request) do + Resource::MergeRequest.fabricate_via_api! do |mr| + mr.file_name = new_file + mr.file_content = 'Text' + end + end + + before do + Flow::Login.sign_in + + merge_request.visit! + end + + it 'opens and edits a merge request in Web IDE' do + Page::MergeRequest::Show.perform do |show| + show.click_open_in_web_ide + end + + Page::Project::WebIDE::Edit.perform do |ide| + ide.has_file?(new_file) + ide.add_to_modified_content(review_text) + ide.commit_changes + end + + merge_request.visit! + + Page::MergeRequest::Show.perform do |show| + show.click_diffs_tab + expect(show).to have_content(review_text) + end + end + end + end +end |