test: add optimizer mvp samples and smoke test

This commit is contained in:
Codex
2026-06-21 23:42:37 +08:00
parent 68310f6e00
commit 97485aa4e9
10 changed files with 135 additions and 2 deletions
+21
View File
@@ -0,0 +1,21 @@
import { defineConfig, devices } from "@playwright/test";
export default defineConfig({
testDir: "./tests/e2e",
webServer: {
command: "npm run dev",
url: "http://localhost:3000",
reuseExistingServer: true,
timeout: 120_000,
},
use: {
baseURL: "http://localhost:3000",
trace: "on-first-retry",
},
projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"] },
},
],
});