Boilerplate free tests (#277)

This commit is contained in:
Will Chen
2025-05-28 22:55:54 -07:00
committed by GitHub
parent 7a4ec22480
commit 509e044137
13 changed files with 196 additions and 181 deletions

View File

@@ -3,6 +3,12 @@ import { PlaywrightTestConfig } from "@playwright/test";
const config: PlaywrightTestConfig = {
testDir: "./e2e-tests",
maxFailures: 1,
timeout: process.env.CI ? 30_000 : 10_000,
// Use a custom snapshot path template because Playwright's default
// is platform-specific which isn't necessary for Dyad e2e tests
// which should be platform agnostic (we don't do screenshots; only textual diffs).
snapshotPathTemplate:
"{testDir}/{testFileDir}/snapshots/{testFileName}_{arg}{ext}",
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: "html",
@@ -18,6 +24,11 @@ const config: PlaywrightTestConfig = {
// screenshot: "on",
// video: "retain-on-failure",
},
webServer: {
command: `cd testing/fake-llm-server && npm start`,
url: "http://localhost:3500/health",
},
};
export default config;