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

Add test to showing notes on click

parent 64427057
No related branches found
No related tags found
No related merge requests found
......@@ -31,4 +31,21 @@ describe('Reports', () => {
expect(initialReports).toEqual(3)
done()
})
it('shows notes', () => {
const wrapper = mount(Reports, {
store,
localVue
})
const note = wrapper.find('.el-collapse-item__content')
expect(note.isVisible()).toBe(false)
const button = wrapper.find('.el-collapse-item__header')
button.trigger('click')
expect(note.isVisible()).toBe(true)
button.trigger('click')
expect(note.isVisible()).toBe(false)
})
})
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