Boilerplate free tests (#277)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user