diff --git a/src/Umbraco.Web.UI.Client/.env.e2e b/src/Umbraco.Web.UI.Client/.env.e2e new file mode 100644 index 0000000000..8242085ca3 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/.env.e2e @@ -0,0 +1,3 @@ +# Copy this to .env.local and change what you want to test. +VITE_UMBRACO_INSTALL_STATUS=running # running or must-install or must-upgrade +VITE_UMBRACO_USE_MSW=off diff --git a/src/Umbraco.Web.UI.Client/playwright.config.ts b/src/Umbraco.Web.UI.Client/playwright.config.ts index 1dba685c60..b6758618a3 100644 --- a/src/Umbraco.Web.UI.Client/playwright.config.ts +++ b/src/Umbraco.Web.UI.Client/playwright.config.ts @@ -99,7 +99,7 @@ const config: PlaywrightTestConfig = { /* Run your local dev server before starting the tests */ webServer: { - command: 'npm run dev', + command: 'npm run dev -- --mode e2e', port: 5173, reuseExistingServer: !process.env.CI, }, diff --git a/src/Umbraco.Web.UI.Client/src/vite-env.d.ts b/src/Umbraco.Web.UI.Client/src/vite-env.d.ts index 23b8b24124..f6224a3614 100644 --- a/src/Umbraco.Web.UI.Client/src/vite-env.d.ts +++ b/src/Umbraco.Web.UI.Client/src/vite-env.d.ts @@ -1,4 +1,5 @@ /// + interface ImportMetaEnv { VITE_UMBRACO_INSTALL_STATUS: 'running' | 'must-upgrade' | 'must-install'; VITE_UMBRACO_INSTALL_PRECONFIGURED: string;