From c8273f372bc5bd0539da2cd298320e7a89b6d03a Mon Sep 17 00:00:00 2001 From: BOHEUS Date: Sat, 17 Aug 2024 17:04:32 +0200 Subject: [PATCH] Fixed baseURL in config --- packages/twenty-e2e-testing/.env.example | 3 ++- packages/twenty-e2e-testing/playwright.config.ts | 7 +++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/twenty-e2e-testing/.env.example b/packages/twenty-e2e-testing/.env.example index b25d1ad1715d..51aabb693dca 100644 --- a/packages/twenty-e2e-testing/.env.example +++ b/packages/twenty-e2e-testing/.env.example @@ -1,5 +1,6 @@ # Note that provide always without trailing forward slash to have expected behaviour -FRONTEND_BASE_URL="http://localhost:3001" +FRONTEND_BASE_URL=http://localhost:3001 +CI_DEFAULT_BASE_URL=https://demo.twenty.com DEFAULT_LOGIN=tim@apple.dev NEW_WORKSPACE_LOGIN=test@apple.dev DEMO_DEFAULT_LOGIN=noah@demo.dev diff --git a/packages/twenty-e2e-testing/playwright.config.ts b/packages/twenty-e2e-testing/playwright.config.ts index 9ef1b109afb7..a91c798791cd 100644 --- a/packages/twenty-e2e-testing/playwright.config.ts +++ b/packages/twenty-e2e-testing/playwright.config.ts @@ -18,10 +18,9 @@ export default defineConfig({ workers: process.env.CI ? 1 : undefined, // undefined = amount of projects timeout: 30 * 1000, // timeout can be changed use: { - baseURL: - process.env.CI ?? - process.env.FRONTEND_BASE_URL ?? - 'http://localhost:3001', + baseURL: process.env.CI + ? process.env.CI_DEFAULT_BASE_URL + : (process.env.FRONTEND_BASE_URL ?? 'http://localhost:3001'), trace: 'retain-on-failure', // trace takes EVERYTHING from page source, records every single step, should be used only when normal debugging won't work screenshot: 'on', // either 'on' here or in different method in modules, if 'on' all screenshots are overwritten each time the test is run headless: true, // instead of changing it to false, run 'yarn test:e2e:debug' or 'yarn test:e2e:ui'