Release/test 合并上生产 #2
@@ -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 () => {
|
||||
await openCreate()
|
||||
const query = wrapper.findAllComponents(ElInput).find(item => item.props('ariaLabel') === '搜索可出库订单')!
|
||||
query.vm.$emit('update:modelValue', 'MATCH')
|
||||
await query.get('input').setValue('MATCH')
|
||||
await flushPromises()
|
||||
expect(wrapper.text()).toContain('全选筛选结果(7)')
|
||||
await query.trigger('keyup', { key: 'Enter' })
|
||||
await query.get('input').trigger('keyup', { key: 'Enter' })
|
||||
await flushPromises()
|
||||
expect(wrapper.text()).toContain('全选筛选结果(6)')
|
||||
await clickButton('全选筛选结果')
|
||||
|
||||
Reference in New Issue
Block a user