Skip to content
Snippets Groups Projects
Commit cbce6e75 authored by Angelina Filippova's avatar Angelina Filippova
Browse files

Add test to deleting a note

parent 7d778db8
No related branches found
No related tags found
No related merge requests found
......@@ -72,6 +72,19 @@ describe('Reports', () => {
expect(noteTextArea.isVisible()).toBe(false)
})
it('deletes a note', () => {
const wrapper = mount(Reports, {
store,
localVue
})
const notes = store.state.reports.fetchedReports[0].notes
expect(notes.length).toBe(3)
wrapper.find('.el-icon-close').trigger('click')
const updatedNotes = store.state.reports.fetchedReports[0].notes
expect(updatedNotes.length).toBe(2)
})
it('loads more reports on scroll', () => {
const wrapper = mount(Reports, {
store,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment