mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
test Data: selected in TransactionForm.spec.js
This commit is contained in:
parent
d0885554d6
commit
e1256eddf2
@ -55,6 +55,13 @@ describe('GddSend', () => {
|
||||
})
|
||||
})
|
||||
|
||||
describe('is selected: "send"', () => {
|
||||
beforeEach(async () => {
|
||||
await wrapper.setData({
|
||||
selected: 'send',
|
||||
})
|
||||
})
|
||||
|
||||
describe('transaction form', () => {
|
||||
beforeEach(() => {
|
||||
wrapper.setProps({ balance: 100.0 })
|
||||
@ -233,4 +240,17 @@ describe('GddSend', () => {
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
describe('is selected: "gift"', () => {
|
||||
beforeEach(async () => {
|
||||
await wrapper.setData({
|
||||
selected: 'gift',
|
||||
})
|
||||
})
|
||||
|
||||
it('has no input field of id input-group-1', () => {
|
||||
expect(wrapper.find('#input-group-1').isVisible()).toBeFalsy()
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user