mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
adapt unit tests for transaction confirmation send component to changes for new design
This commit is contained in:
parent
a53d2f8a2e
commit
74468c77bc
@ -42,10 +42,6 @@ describe('GddSend confirm', () => {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
it('renders the component div.confirm-box-send', () => {
|
|
||||||
expect(wrapper.find('div.confirm-box-send').exists()).toBeTruthy()
|
|
||||||
})
|
|
||||||
|
|
||||||
describe('send now button', () => {
|
describe('send now button', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
jest.clearAllMocks()
|
jest.clearAllMocks()
|
||||||
@ -53,7 +49,7 @@ describe('GddSend confirm', () => {
|
|||||||
|
|
||||||
describe('single click', () => {
|
describe('single click', () => {
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
await wrapper.find('button.btn-primary').trigger('click')
|
await wrapper.find('button.btn.btn-gradido').trigger('click')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('emits send transaction one time', () => {
|
it('emits send transaction one time', () => {
|
||||||
@ -63,8 +59,8 @@ describe('GddSend confirm', () => {
|
|||||||
|
|
||||||
describe('double click', () => {
|
describe('double click', () => {
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
await wrapper.find('button.btn-primary').trigger('click')
|
await wrapper.find('button.btn.btn-gradido').trigger('click')
|
||||||
await wrapper.find('button.btn-primary').trigger('click')
|
await wrapper.find('button.btn.btn-gradido').trigger('click')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('emits send transaction one time', () => {
|
it('emits send transaction one time', () => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user