mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
test double click on send now button
This commit is contained in:
parent
d237634f75
commit
47abb8e9aa
@ -45,6 +45,33 @@ describe('GddSend confirm', () => {
|
||||
it('renders the component div.confirm-box-send', () => {
|
||||
expect(wrapper.find('div.confirm-box-send').exists()).toBeTruthy()
|
||||
})
|
||||
|
||||
describe('send now button', () => {
|
||||
beforeEach(() => {
|
||||
jest.clearAllMocks()
|
||||
})
|
||||
|
||||
describe('single click', () => {
|
||||
beforeEach(async () => {
|
||||
await wrapper.find('button.btn-success').trigger('click')
|
||||
})
|
||||
|
||||
it('emits send transaction one time', () => {
|
||||
expect(wrapper.emitted('send-transaction')).toHaveLength(1)
|
||||
})
|
||||
})
|
||||
|
||||
describe('double click', () => {
|
||||
beforeEach(async () => {
|
||||
await wrapper.find('button.btn-success').trigger('click')
|
||||
await wrapper.find('button.btn-success').trigger('click')
|
||||
})
|
||||
|
||||
it('emits send transaction one time', () => {
|
||||
expect(wrapper.emitted('send-transaction')).toHaveLength(1)
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user