优化
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user