Skip to content

Commit a277e8c

Browse files
committed
Set email/pass for playwright e2e test via cli flags
1 parent ffcd5d9 commit a277e8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

site/e2e/playwright.config.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { PlaywrightTestConfig } from "@playwright/test"
22
import * as path from "path"
3+
import * as constants from './constants';
34

45
const config: PlaywrightTestConfig = {
56
testDir: "tests",
@@ -17,7 +18,7 @@ const config: PlaywrightTestConfig = {
1718
// https://playwright.dev/docs/test-advanced#launching-a-development-web-server-during-the-tests
1819
webServer: {
1920
// Run the coder daemon directly.
20-
command: `go run -tags embed ${path.join(__dirname, "../../cmd/coder/main.go")} server --dev --skip-tunnel`,
21+
command: `go run -tags embed ${path.join(__dirname, "../../cmd/coder/main.go")} server --dev --skip-tunnel --dev-admin-email ${constants.email} --dev-admin-password ${constants.password}`,
2122
port: 3000,
2223
timeout: 120 * 10000,
2324
reuseExistingServer: false,

0 commit comments

Comments
 (0)