fix test, fix lint

This commit is contained in:
ogerly 2022-08-16 09:55:19 +02:00
parent c0486d7f72
commit 3f30252cf5
2 changed files with 18 additions and 1 deletions

View File

@ -46,5 +46,17 @@ describe('GddSend confirm', () => {
expect(wrapper.findAll('div.confirm-box-link').at(0).exists()).toBeTruthy()
})
})
describe('has totalBalance under 0', () => {
beforeEach(async () => {
await wrapper.setProps({
balance: 0,
})
})
it('has button disable', () => {
expect(wrapper.find('.send-button').attributes('disabled')).toBe('disabled')
})
})
})
})

View File

@ -42,7 +42,12 @@
<b-button @click="$emit('on-reset')">{{ $t('back') }}</b-button>
</b-col>
<b-col class="text-right">
<b-button variant="primary" :disabled="disabled" @click="$emit('send-transaction')">
<b-button
class="send-button"
variant="primary"
:disabled="disabled"
@click="$emit('send-transaction')"
>
{{ $t('form.generate_now') }}
</b-button>
</b-col>