优化页面数据加载并完善多语言 SEO、新闻回退、主题首屏及自动化回归测试

This commit is contained in:
2026-10-22 19:01:02 +08:00
parent 7eb97cc5e3
commit 873da8b77c
53 changed files with 774 additions and 362 deletions
+18
View File
@@ -0,0 +1,18 @@
import { defineConfig } from "@playwright/test";
export default defineConfig({
testDir: "./tests/e2e",
fullyParallel: true,
workers: process.env.CI ? 2 : 3,
retries: 0,
use: {
baseURL: "http://127.0.0.1:4173",
browserName: "chromium",
trace: "retain-on-failure",
},
webServer: {
command: "node scripts/serve-export.mjs",
url: "http://127.0.0.1:4173/zh-Hans/",
reuseExistingServer: false,
},
});