优化配置表单布局和分页测试
Security Checks / security (push) Waiting to run

This commit is contained in:
xuans committed 2026-09-06 18:42:28 +08:00
1 parent 2cd8b0dca3
commit e823d88729
3 files changed
+5 -39

No files matched your search

+2 -2
View File
@@ -82,8 +82,8 @@ test('基础分区保留完整表单,分页和展开菜单模板均能编译',
assert.doesNotMatch(text, /&#x[0-9a-f]+;/i)
}
const form = readFileSync(new URL('ConfigForm/ConfigForm.vue', root), 'utf8')
assert.match(form, /v-show="section !== 'base' \|\| activeGroup === group.id"/)
assert.match(form, /watch\(\(\) => props.errors/)
assert.doesNotMatch(form, /v-show="section !== 'base' \|\| activeGroup === group.id"/)
assert.doesNotMatch(form, /activeGroup|watch\(\(\) => props.errors/)
const css = readFileSync(new URL('ConfigForm/ConfigForm.css', root), 'utf8')
assert.deepEqual(compileStyle({ source: css, id: 'data-v-form', scoped: true }).errors, [])
const menu = readFileSync(new URL('../SettingsSubmenu/SettingsSubmenu.vue', root), 'utf8')