mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fixed test for pending animation icon
This commit is contained in:
parent
f1555b4a27
commit
2f6ed90f15
@ -26,8 +26,8 @@ describe('Status', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
describe('balance is pending', () => {
|
describe('balance is pending', () => {
|
||||||
it('it displays an en-dash', () => {
|
it('it displays an animation icon test-pending-icon', () => {
|
||||||
expect(wrapper.find('div.gdd-status-div').text()).toEqual('em-dash GDD')
|
expect(wrapper.find('.test-pending-icon').exists()).toBe(true)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -37,6 +37,9 @@ describe('Status', () => {
|
|||||||
pending: false,
|
pending: false,
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
it('it no displays an animation icon test-pending-icon', () => {
|
||||||
|
expect(wrapper.find('.test-pending-icon').exists()).toBe(false)
|
||||||
|
})
|
||||||
|
|
||||||
it('it displays the ammount of GDD', () => {
|
it('it displays the ammount of GDD', () => {
|
||||||
expect(wrapper.find('div.gdd-status-div').text()).toEqual('1234 GDD')
|
expect(wrapper.find('div.gdd-status-div').text()).toEqual('1234 GDD')
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="gdd-status">
|
<div class="gdd-status">
|
||||||
<div class="p-0 gdd-status-div">
|
<div class="p-0 gdd-status-div">
|
||||||
<b-icon v-if="pending" icon="three-dots" animation="cylon"></b-icon>
|
<b-icon v-if="pending" icon="three-dots" animation="cylon" class="test-pending-icon"></b-icon>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
{{ pending || balance === null ? $t('em-dash') : $n(balance, 'decimal') }} {{ statusText }}
|
{{ pending || balance === null ? $t('em-dash') : $n(balance, 'decimal') }} {{ statusText }}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user