Z ZPI 文档 v0.3.8
介绍页

源码

playwright.config.ts

typescript15 行查看原文
import { defineConfig } from "@playwright/test";
import { assertBackgroundCommand } from "./tests/helpers/test-command.ts";

assertBackgroundCommand(process.argv.slice(2));
process.env.PLAYWRIGHT_HTML_OPEN = "never";

export default defineConfig({
  globalSetup: "./tests/safety-check.ts",
  testDir: "tests/desktop",
  timeout: 30000,
  workers: 1,
  use: { trace: "retain-on-failure" },
  reporter: "list",
});