This commit is contained in:
2026-08-12 10:59:49 +08:00
parent fb542e0b6f
commit f9ff9086d5
20 changed files with 103 additions and 81 deletions
@@ -89,6 +89,8 @@ describe('ExpressCompaniesView query and table migration', () => {
expect(wrapper.find('.metric-strip').exists()).toBe(false)
expect(wrapper.find('.list-page-layout__state').exists()).toBe(false)
expect(listPlatformExpressCompanies).toHaveBeenCalledWith(1, 20, '', '')
expect(wrapper.find('.data-table').text()).not.toContain('轨迹查询模板')
expect(wrapper.find('.data-table').text()).not.toContain('测试数据')
})
it('renders the error state instead of an empty table panel', async () => {
@@ -122,6 +124,8 @@ describe('ExpressCompaniesView query and table migration', () => {
expect(document.body.textContent).toContain('新增快递公司')
expect(document.body.textContent).not.toContain('请先在筛选条件中选择所属企业')
expect(document.body.textContent).toContain('轨迹查询地址模板')
expect(document.body.textContent).toContain('内部说明')
})
it('keeps the latest express company selected for editing', async () => {