Simple playwright e2e test (#234)

This commit is contained in:
Will Chen
2025-05-23 10:44:52 -07:00
committed by GitHub
parent 9d046834d7
commit 644012c9a5
8 changed files with 236 additions and 23 deletions

23
playwright.config.ts Normal file
View File

@@ -0,0 +1,23 @@
import { PlaywrightTestConfig } from "@playwright/test";
const config: PlaywrightTestConfig = {
testDir: "./e2e-tests",
maxFailures: 1,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: "html",
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* See https://playwright.dev/docs/trace-viewer */
trace: "retain-on-failure",
// These options do NOT work for electron playwright.
// Instead, you need to do a workaround.
// See https://github.com/microsoft/playwright/issues/8208
//
// screenshot: "on",
// video: "retain-on-failure",
},
};
export default config;