feat: add ImageFind application and release pipelines
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import { defineConfig } from "@playwright/test";
|
||||
|
||||
const port = Number(process.env.PLAYWRIGHT_PORT || 4173);
|
||||
|
||||
export default defineConfig({
|
||||
testDir: "./tests",
|
||||
testIgnore: "**/fnos.spec.ts",
|
||||
outputDir: "../.playwright-results",
|
||||
// Chromium can take longer to create a fresh page on the low-memory fnOS
|
||||
// release runner after visual-audit contexts have been reclaimed.
|
||||
timeout: 90_000,
|
||||
expect: { timeout: 30_000, toHaveScreenshot: { animations: "disabled", maxDiffPixelRatio: 0.01 } },
|
||||
use: {
|
||||
baseURL: `http://127.0.0.1:${port}`,
|
||||
locale: "zh-CN",
|
||||
timezoneId: "Asia/Shanghai",
|
||||
colorScheme: "light",
|
||||
},
|
||||
webServer: {
|
||||
command: `npm run dev -- --host 127.0.0.1 --port ${port}`,
|
||||
url: `http://127.0.0.1:${port}`,
|
||||
// CI and release acceptance must own the server process so a stale Vite
|
||||
// instance from a previous batch cannot disappear midway through a run.
|
||||
reuseExistingServer: !process.env.CI,
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user