diff --git a/scripts/e2e.config.ts b/scripts/e2e.config.ts index b3fd86e879..19a2e3d392 100644 --- a/scripts/e2e.config.ts +++ b/scripts/e2e.config.ts @@ -152,11 +152,11 @@ export default { targets: [ { name: "web", - engine: web({ viewport: { width: 1280, height: 800 } }), + engine: web({ browser: "firefox", colorScheme: "dark", viewport: { width: 1280, height: 800 } }), app: { url: `http://${LOOPBACK}:0`, // Lets a scenario put an image on the clipboard for a real keyboard paste. - permissions: { "clipboard-write": "grant" }, + // Vite answers before the server does; this path is proxied to the server. readyUrl: `http://${LOOPBACK}:{port}/.well-known/t3/environment`, command: { diff --git a/scripts/scenarios/start-app.ts b/scripts/scenarios/start-app.ts index c22d692528..100bb4b3d7 100644 --- a/scripts/scenarios/start-app.ts +++ b/scripts/scenarios/start-app.ts @@ -135,6 +135,7 @@ const startApp = Effect.fn("startApp")(function* (input: { yield* prepareHome(input.home); const env = { ...hostEnvironment, + HOME: hostEnvironment.T3_USAGE_FIXTURE_HOME ?? hostEnvironment.HOME, PATH: `${path.join(input.home, "bin")}:${hostEnvironment.PATH ?? ""}`, T3CODE_AUTO_BOOTSTRAP_PROJECT_FROM_CWD: "0", };