fix(short-drama-agent-front): 优化拆解引导与质量规则配置
This commit is contained in:
1 parent
c6ef595a8e
commit
2db8549818
13 files changed
+626
-225
No files matched your search
@@ -1396,19 +1396,15 @@ describe('工作台页面交互', () => {
|
||||
expect(fetcher.mock.calls.every(([, init]) => init?.method === 'GET')).toBe(true)
|
||||
})
|
||||
|
||||
it('拆解导出图标位于 Tabs suffix,空快照时禁用且不再提供执行记录', async () => {
|
||||
it('拆解初始空页面隐藏标题、分类和导出,仅保留中央设置引导', async () => {
|
||||
wrapper = mount(BreakdownPage, {
|
||||
attachTo: document.body,
|
||||
global: { provide: { [projectContextKey as symbol]: context() }, stubs: routerLinkStubs }
|
||||
})
|
||||
const toolbar = wrapper.get('.result-toolbar')
|
||||
expect(toolbar.find('[aria-label="拆解结果"]').exists()).toBe(true)
|
||||
expect(toolbar.find(':scope > button').exists()).toBe(false)
|
||||
const exportButton = toolbar.get<HTMLButtonElement>('.n-tabs-nav__suffix [aria-label="导出拆解结果"]')
|
||||
expect(exportButton.element.disabled).toBe(true)
|
||||
expect(exportButton.text()).toBe('')
|
||||
expect(exportButton.get('svg').attributes('width')).toBe('18')
|
||||
expect(toolbar.find('[aria-label="拆解更多操作"]').exists()).toBe(false)
|
||||
expect(wrapper.get('.workspace-heading-scroll').isVisible()).toBe(false)
|
||||
expect(wrapper.find('.result-toolbar').exists()).toBe(false)
|
||||
expect(wrapper.find('[aria-label="导出拆解结果"]').exists()).toBe(false)
|
||||
expect(wrapper.get('.breakdown-initial-empty').text()).toContain('拆解设置')
|
||||
expect(wrapper.find('.history-panel').exists()).toBe(false)
|
||||
expect(wrapper.text()).not.toContain('执行记录')
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user