✨ feat(vscode): 重写注释时在卡片下展示模型过程
This commit is contained in:
1 parent
08fb04e3fd
commit
5e8e7b65ee
15 files changed
+369
-83
No files matched your search
@@ -39,7 +39,7 @@ describe('块右上角的图标按钮', () => {
|
||||
expect(buttons[1]).toContain('data-tooltip="编辑"')
|
||||
})
|
||||
|
||||
it('「按注释规范重写」排在「问 AI」左边;正在重写时禁用并转圈,不用原生 title', () => {
|
||||
it('「按注释规范重写」排在「问 AI」左边;正在重写时禁用,不用原生 title,按钮上不转圈', () => {
|
||||
const html = render(false, { asking: false }, { rewriting: false })
|
||||
expect(visibleText(html)).toBe('')
|
||||
expect(html).not.toContain(' title=')
|
||||
@@ -51,6 +51,7 @@ describe('块右上角的图标按钮', () => {
|
||||
expect(buttons[2]).toContain('data-tooltip="编辑"')
|
||||
const busy = render(false, { asking: false }, { rewriting: true })
|
||||
expect(busy).toContain('disabled=""')
|
||||
expect(busy).toContain('cr-qa-spin')
|
||||
expect(busy).toContain('aria-busy="true"')
|
||||
expect(busy).not.toContain('cr-qa-spin')
|
||||
})
|
||||
})
|
||||
Reference in new issue
Block a user