优化
This commit is contained in:
@@ -115,6 +115,13 @@ describe('InboundFeeDetailManager', () => {
|
||||
expect(source).toContain('<el-table :data="rows" border stripe')
|
||||
})
|
||||
|
||||
it('spins only the refresh icon while fee rows are loading', () => {
|
||||
expect(source).toContain(':aria-busy="loading" :disabled="loading"')
|
||||
expect(source).toContain(`<RefreshCw :size="16" :class="{ 'is-spinning': loading }" />`)
|
||||
expect(source).not.toMatch(/aria-label="刷新费用明细"[^>]*:loading=/)
|
||||
expect(source).toContain('@keyframes fee-refresh-spin')
|
||||
})
|
||||
|
||||
it('loads RECEIVABLE fee items without requesting counterparties', async () => {
|
||||
const wrapper = mountManager(['firstleg:inbound:fee-detail:view', 'firstleg:inbound:fee-detail:edit', 'firstleg:fee-item:view'])
|
||||
await flushPromises()
|
||||
|
||||
Reference in New Issue
Block a user