feat: add ImageFind application and release pipelines
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import { defineConfig } from "@playwright/test";
|
||||
|
||||
const baseURL = process.env.IMAGEFIND_FNOS_BASE_URL;
|
||||
const storageState = process.env.IMAGEFIND_FNOS_STORAGE_STATE;
|
||||
|
||||
if (!baseURL || !storageState) {
|
||||
throw new Error("真机测试需要 IMAGEFIND_FNOS_BASE_URL 和 IMAGEFIND_FNOS_STORAGE_STATE");
|
||||
}
|
||||
|
||||
export default defineConfig({
|
||||
testDir: "./tests",
|
||||
testMatch: "**/fnos.spec.ts",
|
||||
outputDir: "../.playwright-results/fnos",
|
||||
timeout: 120_000,
|
||||
expect: { timeout: 30_000 },
|
||||
use: {
|
||||
baseURL,
|
||||
storageState,
|
||||
locale: "zh-CN",
|
||||
timezoneId: "Asia/Shanghai",
|
||||
colorScheme: "light",
|
||||
screenshot: "only-on-failure",
|
||||
trace: "retain-on-failure",
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user