test: replace false-green checks with behavioral coverage (#6282)

* test: replace false-green checks with behavioral coverage

* test: complete behavior-focused audit coverage
This commit is contained in:
chengyongru authored and GitHub committed 2026-10-18 03:16:25 +08:00
1 parent c7ab7aa6da
commit 74942bd190
91 files changed
+1891 -1391

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
import { defineConfig, devices } from "@playwright/test";
const port = Number(process.env.NANOBOT_BROWSER_TEST_PORT ?? 4178);
export default defineConfig({
testDir: "./browser",
fullyParallel: false,
workers: 1,
retries: 0,
timeout: 30_000,
reporter: "list",
outputDir: "test-results/browser",
use: {
...devices["Desktop Chrome"],
baseURL: `http://127.0.0.1:${port}`,
reducedMotion: "no-preference",
launchOptions: {
executablePath: process.env.PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH,
},
screenshot: "only-on-failure",
},
webServer: {
command: `node node_modules/vite/bin/vite.js --host 127.0.0.1 --port ${port} --strictPort`,
url: `http://127.0.0.1:${port}/browser/fixture.html`,
reuseExistingServer: false,
},
});