fix(前端): 密钥共用提示不再常驻界面,只走通知与铃铛
This commit is contained in:
@@ -74,6 +74,12 @@ test('共享密钥提示按键去重,不按文案去重', async () => {
|
||||
)
|
||||
})
|
||||
|
||||
test('密钥共用提示只走通知,不再常驻界面', () => {
|
||||
assert.ok(component.includes('ElMessage.warning'), '共用密钥提示应通过 ElMessage 通知弹出')
|
||||
assert.ok(!component.includes('cost-guard-alert--shared'), '黄色常驻横幅已下线,样式类不得回流')
|
||||
assert.ok(!component.includes('密钥共用提示'), '界面模板不应再渲染「密钥共用提示」横幅')
|
||||
})
|
||||
|
||||
test('全局挂载并在暂停时提供「继续任务」', () => {
|
||||
assert.ok(app.includes("import CostGuardAlert from '@/shared/components/CostGuardAlert.vue'"))
|
||||
assert.ok(app.includes('<CostGuardAlert />'), '组件没挂到 App.vue,异常时界面不会弹')
|
||||
|
||||
Reference in New Issue
Block a user