summaryrefslogtreecommitdiff
path: root/spec/features/notes_on_merge_requests_spec.rb
diff options
context:
space:
mode:
authorFatih Acet <acetfatih@gmail.com>2016-11-15 01:26:54 +0300
committerFatih Acet <acetfatih@gmail.com>2017-01-04 23:37:54 +0300
commit56293399e6d7223e5d7287b191404d9756f245a4 (patch)
treedec09b7e11ee4c8021b152bd67bfc00986825a73 /spec/features/notes_on_merge_requests_spec.rb
parenta1d1a414791ab7f6bee9412b93d2ba7365191277 (diff)
downloadgitlab-ce-56293399e6d7223e5d7287b191404d9756f245a4.tar.gz
Fix notes spec.
Diffstat (limited to 'spec/features/notes_on_merge_requests_spec.rb')
-rw-r--r--spec/features/notes_on_merge_requests_spec.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/features/notes_on_merge_requests_spec.rb b/spec/features/notes_on_merge_requests_spec.rb
index 9fffbb43e87..7c62e510392 100644
--- a/spec/features/notes_on_merge_requests_spec.rb
+++ b/spec/features/notes_on_merge_requests_spec.rb
@@ -70,10 +70,8 @@ describe 'Comments', feature: true do
end
describe 'when editing a note', js: true do
- it 'contains the hidden edit form' do
- page.within("#note_#{note.id}") do
- is_expected.to have_css('.note-edit-form', visible: false)
- end
+ it 'there should be a hidden edit form' do
+ is_expected.to have_css('.note-edit-form', visible: false, count: 1)
end
describe 'editing the note' do