This commit is contained in:
2026-09-15 15:25:56 +08:00
parent 2e57098ad9
commit e6d9474df1
@@ -74,10 +74,10 @@ describe('outbound candidate search and selection', () => {
it('searches on query, selects every filtered page, shows partial page selection and clears the selection', async () => { it('searches on query, selects every filtered page, shows partial page selection and clears the selection', async () => {
await openCreate() await openCreate()
const query = wrapper.findAllComponents(ElInput).find(item => item.props('ariaLabel') === '搜索可出库订单')! const query = wrapper.findAllComponents(ElInput).find(item => item.props('ariaLabel') === '搜索可出库订单')!
query.vm.$emit('update:modelValue', 'MATCH') await query.get('input').setValue('MATCH')
await flushPromises() await flushPromises()
expect(wrapper.text()).toContain('全选筛选结果(7)') expect(wrapper.text()).toContain('全选筛选结果(7)')
await query.trigger('keyup', { key: 'Enter' }) await query.get('input').trigger('keyup', { key: 'Enter' })
await flushPromises() await flushPromises()
expect(wrapper.text()).toContain('全选筛选结果(6)') expect(wrapper.text()).toContain('全选筛选结果(6)')
await clickButton('全选筛选结果') await clickButton('全选筛选结果')