mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
yarn lint, yarn locales
This commit is contained in:
parent
a5ae7f4419
commit
f9f717a02a
@ -120,7 +120,9 @@ describe('TransactionForm', () => {
|
|||||||
it('flushes an error message when email is the email of logged in user', async () => {
|
it('flushes an error message when email is the email of logged in user', async () => {
|
||||||
await wrapper.findAll('div.form-group').at(0).find('input').setValue('user@example.org')
|
await wrapper.findAll('div.form-group').at(0).find('input').setValue('user@example.org')
|
||||||
await flushPromises()
|
await flushPromises()
|
||||||
expect(wrapper.findAll('div.form-group').at(0).find('.invalid-feedback').text()).toBe('form.validation.is-not')
|
expect(wrapper.findAll('div.form-group').at(0).find('.invalid-feedback').text()).toBe(
|
||||||
|
'form.validation.is-not',
|
||||||
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('trims the email after blur', async () => {
|
it('trims the email after blur', async () => {
|
||||||
@ -137,7 +139,9 @@ describe('TransactionForm', () => {
|
|||||||
|
|
||||||
describe('amount field', () => {
|
describe('amount field', () => {
|
||||||
it('has an input field of type text', () => {
|
it('has an input field of type text', () => {
|
||||||
expect(wrapper.findAll('div.form-group').at(1).find('input').attributes('type')).toBe('text')
|
expect(wrapper.findAll('div.form-group').at(1).find('input').attributes('type')).toBe(
|
||||||
|
'text',
|
||||||
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('has a label form.amount', () => {
|
it('has a label form.amount', () => {
|
||||||
@ -160,13 +164,17 @@ describe('TransactionForm', () => {
|
|||||||
it('flushes an error message when no valid amount is given', async () => {
|
it('flushes an error message when no valid amount is given', async () => {
|
||||||
await wrapper.findAll('div.form-group').at(1).find('input').setValue('a')
|
await wrapper.findAll('div.form-group').at(1).find('input').setValue('a')
|
||||||
await flushPromises()
|
await flushPromises()
|
||||||
expect(wrapper.findAll('div.form-group').at(1).find('.invalid-feedback').text()).toBe('form.validation.gddSendAmount')
|
expect(wrapper.findAll('div.form-group').at(1).find('.invalid-feedback').text()).toBe(
|
||||||
|
'form.validation.gddSendAmount',
|
||||||
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('flushes an error message when amount is too high', async () => {
|
it('flushes an error message when amount is too high', async () => {
|
||||||
await wrapper.findAll('div.form-group').at(1).find('input').setValue('123.34')
|
await wrapper.findAll('div.form-group').at(1).find('input').setValue('123.34')
|
||||||
await flushPromises()
|
await flushPromises()
|
||||||
expect(wrapper.findAll('div.form-group').at(1).find('.invalid-feedback').text()).toBe('form.validation.gddSendAmount')
|
expect(wrapper.findAll('div.form-group').at(1).find('.invalid-feedback').text()).toBe(
|
||||||
|
'form.validation.gddSendAmount',
|
||||||
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('flushes no errors when amount is valid', async () => {
|
it('flushes no errors when amount is valid', async () => {
|
||||||
|
|||||||
@ -28,7 +28,6 @@
|
|||||||
</b-form-group>
|
</b-form-group>
|
||||||
</validation-provider>
|
</validation-provider>
|
||||||
<b-input-group v-else append="GDD" :label="label" :label-for="labelFor">
|
<b-input-group v-else append="GDD" :label="label" :label-for="labelFor">
|
||||||
|
|
||||||
<b-form-input
|
<b-form-input
|
||||||
v-model="currentValue"
|
v-model="currentValue"
|
||||||
:id="labelFor"
|
:id="labelFor"
|
||||||
|
|||||||
@ -18,7 +18,6 @@
|
|||||||
step="0.5"
|
step="0.5"
|
||||||
min="0"
|
min="0"
|
||||||
:max="validMaxTime"
|
:max="validMaxTime"
|
||||||
|
|
||||||
></b-form-input>
|
></b-form-input>
|
||||||
<b-form-invalid-feedback v-bind="ariaMsg">
|
<b-form-invalid-feedback v-bind="ariaMsg">
|
||||||
{{ errors[0] }}
|
{{ errors[0] }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user