This commit is contained in:
2026-08-07 17:36:05 +08:00
parent 6849aedd3b
commit 5fae0f6d9b
3 changed files with 37 additions and 1 deletions
@@ -181,7 +181,8 @@ describe('InboundOrdersView', () => {
const wrapper = mountPage()
await flushPromises()
await wrapper.findAll('button').find((button) => button.text().includes('打印箱唛'))?.trigger('click')
;[...document.querySelectorAll<HTMLButtonElement>('button')]
.filter((button) => button.textContent?.trim() === '打印箱唛').at(-1)?.click()
await flushPromises()
expect(downloadInboundCartonLabels).toHaveBeenCalledWith('10002', '19001')