优化
This commit is contained in:
@@ -114,6 +114,11 @@ describe('PartnersView real API integration', () => {
|
||||
expect(wrapper.find('.query-toolbar').exists()).toBe(true)
|
||||
expect(wrapper.find('.data-table').exists()).toBe(true)
|
||||
expect(wrapper.find('.table-panel').exists()).toBe(true)
|
||||
expect(wrapper.find('.query-toolbar__actions').text()).not.toContain('新增往来单位')
|
||||
expect(wrapper.find('.data-table__business-actions').text()).toContain('新增往来单位')
|
||||
expect(wrapper.find('.data-table__toolbar-start').exists()).toBe(false)
|
||||
expect(wrapper.find('.data-table__pagination-left').text()).toContain('平台公共数据 · 共 1 个往来单位')
|
||||
expect(wrapper.find('.list-page-layout__state').exists()).toBe(false)
|
||||
})
|
||||
|
||||
it('opens the create form without selecting an enterprise', async () => {
|
||||
@@ -187,6 +192,8 @@ describe('PartnersView real API integration', () => {
|
||||
expect(wrapper.text()).toContain('Gateway unavailable')
|
||||
expect(wrapper.text()).toContain('重新加载')
|
||||
expect(wrapper.text()).not.toContain('深圳示例贸易有限公司')
|
||||
expect(wrapper.find('.list-page-layout__state').exists()).toBe(true)
|
||||
expect(wrapper.find('.table-panel').exists()).toBe(false)
|
||||
})
|
||||
|
||||
it('keeps the latest detail when an older partner request finishes last', async () => {
|
||||
|
||||
Reference in New Issue
Block a user