diff options
| author | Fatih Acet <acetfatih@gmail.com> | 2016-12-09 00:49:32 +0300 |
|---|---|---|
| committer | Fatih Acet <acetfatih@gmail.com> | 2016-12-14 16:20:57 +0300 |
| commit | 471444e9a1863ac804bc2017bb14274767391b4b (patch) | |
| tree | e345267c724205bd903c648b1b5c8e51f3e861da /spec | |
| parent | 20803934eefd7c57ff8f519b4bd11a1f503f7c1f (diff) | |
| download | gitlab-ce-single-edit-comment-widget.tar.gz | |
Fix single note edit form specs.single-edit-comment-widget
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/features/notes_on_merge_requests_spec.rb | 3 | ||||
| -rw-r--r-- | spec/javascripts/notes_spec.js | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/spec/features/notes_on_merge_requests_spec.rb b/spec/features/notes_on_merge_requests_spec.rb index 7c62e510392..d93f1ef8f81 100644 --- a/spec/features/notes_on_merge_requests_spec.rb +++ b/spec/features/notes_on_merge_requests_spec.rb @@ -71,7 +71,8 @@ describe 'Comments', feature: true do describe 'when editing a note', js: true do it 'there should be a hidden edit form' do - is_expected.to have_css('.note-edit-form', visible: false, count: 1) + is_expected.to have_css('.note-edit-form:not(.mr-note-edit-form)', visible: false, count: 1) + is_expected.to have_css('.note-edit-form.mr-note-edit-form', visible: false, count: 1) end describe 'editing the note' do diff --git a/spec/javascripts/notes_spec.js b/spec/javascripts/notes_spec.js index 2db182d702b..229f030058f 100644 --- a/spec/javascripts/notes_spec.js +++ b/spec/javascripts/notes_spec.js @@ -17,6 +17,7 @@ fixture.load(commentsTemplate); gl.utils.disableButtonIfEmptyField = _.noop; window.project_uploads_path = 'http://test.host/uploads'; + $('body').data('page', 'projects:issues:show'); }); describe('task lists', function() { |
