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