Add 4 files, update 14 files
This commit is contained in:
1 parent
278293b397
commit
2913b0332f
18 files changed
+227
-22
No files matched your search
+14
-10
@@ -1,20 +1,24 @@
|
||||
import { defineConfig } from "@playwright/test";
|
||||
import { defineConfig, devices } from "@playwright/test";
|
||||
|
||||
// Generated by Dyad. The dev server is started separately by Dyad's
|
||||
// preview, so we point baseURL at the already-running proxy URL (passed via
|
||||
// env) rather than using Playwright's `webServer` (which would double-start
|
||||
// the app).
|
||||
// // Uses your installed Google Chrome (no extra browser download).
|
||||
export default defineConfig({
|
||||
testDir: "./e2e-tests",
|
||||
// Run serially against the single dev server.
|
||||
workers: 1,
|
||||
fullyParallel: false,
|
||||
reporter: [["json", { outputFile: "test-results/results.json" }]],
|
||||
reporter: [["list"], ["json", { outputFile: "test-results/results.json" }]],
|
||||
use: {
|
||||
baseURL: process.env.DYAD_TEST_BASE_URL || "http://localhost:32100",
|
||||
channel: "chrome",
|
||||
baseURL: process.env.DYAD_TEST_BASE_URL || process.env.PLAYWRIGHT_BASE_URL || "http://127.0.0.1:32104",
|
||||
screenshot: "only-on-failure",
|
||||
trace: "retain-on-failure",
|
||||
},
|
||||
webServer: process.env.DYAD_TEST_BASE_URL
|
||||
? undefined
|
||||
: {
|
||||
command: "pnpm dev --hostname 127.0.0.1 --port 32104",
|
||||
url: "http://127.0.0.1:32104",
|
||||
reuseExistingServer: !process.env.CI,
|
||||
timeout: 120_000,
|
||||
},
|
||||
projects: [
|
||||
{ name: "chromium", use: { ...devices["Desktop Chrome"] } },
|
||||
],
|
||||
});
|
||||
Reference in new issue
Block a user