优化
This commit is contained in:
@@ -111,7 +111,7 @@ describe('ExpressCompaniesView query and table migration', () => {
|
||||
expect(wrapper.text()).toContain('顺丰速运')
|
||||
expect(wrapper.text()).toContain('平台公共数据 · 共 1 家快递公司')
|
||||
expect(wrapper.find('.metric-strip').exists()).toBe(false)
|
||||
expect(wrapper.find('.list-page-layout__state').exists()).toBe(false)
|
||||
expect(wrapper.find('.data-table__notices').exists()).toBe(false)
|
||||
expect(listPlatformExpressCompanies).toHaveBeenCalledWith(1, 20, '', '')
|
||||
expect(wrapper.find('.data-table').text()).not.toContain('轨迹查询模板')
|
||||
expect(wrapper.find('.data-table').text()).not.toContain('测试数据')
|
||||
@@ -121,8 +121,8 @@ describe('ExpressCompaniesView query and table migration', () => {
|
||||
vi.mocked(listPlatformExpressCompanies).mockRejectedValueOnce(new Error('Gateway unavailable'))
|
||||
const wrapper = await mountView()
|
||||
|
||||
expect(wrapper.find('.list-page-layout__state').exists()).toBe(true)
|
||||
expect(wrapper.find('.table-panel').exists()).toBe(false)
|
||||
expect(wrapper.find('.data-table__notices').exists()).toBe(true)
|
||||
expect(wrapper.find('.el-table').exists()).toBe(false)
|
||||
expect(wrapper.text()).toContain('快递公司加载失败')
|
||||
expect(wrapper.text()).not.toContain('Gateway unavailable')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user