Add test to showing notes on click
This commit is contained in:
parent
6442705737
commit
894ea3064d
1 changed files with 17 additions and 0 deletions
|
@ -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)
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue