chore(spec): 归档 blog-5n——八任务收敛(后台深度优化全家桶)

Spec: 2026-11-05_blog-5n-admin-deep-optimization

Co-authored-by: GLM-5.3
This commit is contained in:
wait4xandGLM-5.3 committed 2026-11-05 20:13:09 +08:00
1 parent a555a3e450
commit 5c0e6ed900
29 files changed
+1559 -512

No files matched your search

+12
View File
@@ -347,6 +347,18 @@ await d.addInitScript(() => localStorage.setItem('theme', 'dark'));
await d.goto(BASE + '/gallery/', { waitUntil: 'networkidle' });
await d.screenshot({ path: `${SHOTS}/12-gallery-dark.png`, fullPage: true });
// 5n:后台页面资产(预登录态即可断言——脚本/链接/速通坞在登录前就挂载)
{
await page.goto(BASE + '/admin/', { waitUntil: 'networkidle' });
const adminHtml = await page.content();
ok('5n·后台三脚本接线(bundle+排版+预览+状态条)',
adminHtml.includes('sveltia-cms.js') && adminHtml.includes('preview-style.js') && adminHtml.includes('deploy-status.js'));
ok('5n·速通坞五入口', (await page.locator('#quick-dock a').count()) === 5);
ok('5n·PWA manifest 挂载', adminHtml.includes('manifest.webmanifest'));
const stats = await page.request.get(BASE + '/admin/stats.html');
ok('5n·内容仪表盘可达', stats.status() === 200);
}
await browser.close();
const fails = results.filter((r) => !r.pass).length;
console.log(`\nE2E 汇总: ${results.length - fails}/${results.length} PASS${fails ? ',FAIL ' + fails : ''}`);