diff options
author | Jacob Schatz <jschatz1@gmail.com> | 2016-04-12 17:15:52 +0000 |
---|---|---|
committer | Jacob Schatz <jschatz1@gmail.com> | 2016-04-12 17:15:52 +0000 |
commit | e1838980c6efaafe4b590a20d54dfdc420b2c7e2 (patch) | |
tree | ebdc6d31b20fbee24d6af98cf68ef0a173fed401 /spec | |
parent | a5cb6b0b83477e2722432cd21974e9a7d42a62e5 (diff) | |
parent | 400a1ae04d28388e7dfbd7c03db857d58a7d8776 (diff) | |
download | gitlab-ce-e1838980c6efaafe4b590a20d54dfdc420b2c7e2.tar.gz |
Merge branch 'fix_quick_submit_missing_in_edit_merge_request' into 'master'
Fix quick submit missing in edit merge request page
closes #14953
![fix](/uploads/5b80b37330929514c81299b4c8fe3efb/fix.gif)
See merge request !3601
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/merge_requests/edit_mr_spec.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/features/merge_requests/edit_mr_spec.rb b/spec/features/merge_requests/edit_mr_spec.rb new file mode 100644 index 00000000000..9e007ab7635 --- /dev/null +++ b/spec/features/merge_requests/edit_mr_spec.rb @@ -0,0 +1,21 @@ +require 'spec_helper' + +feature 'Edit Merge Request', feature: true do + let(:user) { create(:user) } + let(:project) { create(:project, :public) } + let(:merge_request) { create(:merge_request, :with_diffs, source_project: project) } + + before do + project.team << [user, :master] + + login_as user + + visit edit_namespace_project_merge_request_path(project.namespace, project, merge_request) + end + + context 'editing a MR' do + it 'form should have class js-quick-submit' do + expect(page).to have_selector('.js-quick-submit') + end + end +end |