审查检查点:修正全量回归基础夹具

补充 SMTP 测试表结构,更新管理端点数量断言,并同步前端回归测试夹具与布局断言。
This commit is contained in:
xuans committed 2026-09-30 05:01:03 +08:00
1 parent 52a8c49c90
commit 9826345577
4 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -9,7 +9,7 @@ const createInterceptors = compileFunction(
source.replace(/^import .*$/gm, '')
.replace('import.meta.env.VITE_APP_URL', 'undefined')
.replace('export {http};', ''),
['axios', 'lang', 'router', 'createLoginRedirectHandler', 'decodeBlobAPIError']
['axios', 'lang', 'router', 'createLoginRedirectHandler', 'decodeBlobAPIError', 'useGlobalStatusStore']
)
function fixture() {
@@ -17,7 +17,7 @@ function fixture() {
let failure
let redirects = 0
const http = { interceptors: { response: { use: (left, right) => { success = left; failure = right } } } }
createInterceptors({ create: () => http }, { lang: 'zh' }, {}, () => async () => { redirects++ }, decodeBlobAPIError)
createInterceptors({ create: () => http }, { lang: 'zh' }, {}, () => async () => { redirects++ }, decodeBlobAPIError, () => ({ clear() {} }))
return { success, failure, redirects: () => redirects }
}
+1 -1
View File
@@ -139,7 +139,7 @@ test('配置管理只在真实移动端将内部导航移到内容顶部', () =>
const containerStart = config.indexOf('@container settings-content (max-width: 560px)')
const desktopStart = config.indexOf('@media (min-width: 769px)', containerStart)
const containerRule = config.slice(containerStart, desktopStart)
assert.match(header, /min\(100vw, max\(56vw, 880px\)\)/)
assert.match(header, /min\(100vw, max\(72vw, 1100px\)\)/)
assert.match(config, /grid-template-areas: "main submenu"/)
assert.match(config, /@media \(min-width: 769px\)[\s\S]*grid-template-columns: minmax\(0, 1fr\)/)
assert.match(config, /@media \(max-width: 768px\)[\s\S]*"submenu"[\s\S]*"main"/)