From 2e57098ad94718026cc6c8329163ab35a8c3150e Mon Sep 17 00:00:00 2001 From: ouyangxq <775153912@qq.com> Date: Tue, 15 Sep 2026 15:25:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/OutboundsView.selection.test.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/modules/overseas-warehouse/pages/OutboundsView.selection.test.ts b/src/modules/overseas-warehouse/pages/OutboundsView.selection.test.ts index 2bce547d..cac04e81 100644 --- a/src/modules/overseas-warehouse/pages/OutboundsView.selection.test.ts +++ b/src/modules/overseas-warehouse/pages/OutboundsView.selection.test.ts @@ -73,7 +73,7 @@ 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.attributes('aria-label') === '搜索可出库订单')! + const query = wrapper.findAllComponents(ElInput).find(item => item.props('ariaLabel') === '搜索可出库订单')! query.vm.$emit('update:modelValue', 'MATCH') await flushPromises() expect(wrapper.text()).toContain('全选筛选结果(7)') @@ -82,7 +82,8 @@ describe('outbound candidate search and selection', () => { expect(wrapper.text()).toContain('全选筛选结果(6)') await clickButton('全选筛选结果') expect(wrapper.text()).toContain('已选择 6 条') - await clickButton('重置') + await wrapper.get('.candidate-query').findAll('button').find(item => item.text() === '重置')!.trigger('click') + await flushPromises() candidatePagination().vm.$emit('update:current-page', 2) await flushPromises() expect(pageCheckbox().props('indeterminate')).toBe(true) @@ -102,7 +103,7 @@ describe('outbound candidate search and selection', () => { expect(pagination.props('currentPage')).toBe(1) expect(wrapper.text()).toContain('第 1 / 1 页') expect(wrapper.text()).toContain('已选择 7 条') - const warehouse = wrapper.findAllComponents(ElSelect).find(item => item.attributes('aria-label') === '搜索海外仓')! + const warehouse = wrapper.findAllComponents(ElSelect).find(item => item.props('ariaLabel') === '搜索海外仓')! expect(warehouse.props('filterable')).toBe(true) warehouse.vm.$emit('update:modelValue', 'warehouse-b') warehouse.vm.$emit('change', 'warehouse-b')