Skip to content

Commit c8273f3

Browse files
committed
Fixed baseURL in config
1 parent db20a35 commit c8273f3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/twenty-e2e-testing/.env.example

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Note that provide always without trailing forward slash to have expected behaviour
2-
FRONTEND_BASE_URL="http://localhost:3001"
2+
FRONTEND_BASE_URL=http://localhost:3001
3+
CI_DEFAULT_BASE_URL=https://demo.twenty.com
34
DEFAULT_LOGIN=[email protected]
45
NEW_WORKSPACE_LOGIN=[email protected]
56
DEMO_DEFAULT_LOGIN=[email protected]

packages/twenty-e2e-testing/playwright.config.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@ export default defineConfig({
1818
workers: process.env.CI ? 1 : undefined, // undefined = amount of projects
1919
timeout: 30 * 1000, // timeout can be changed
2020
use: {
21-
baseURL:
22-
process.env.CI ??
23-
process.env.FRONTEND_BASE_URL ??
24-
'http://localhost:3001',
21+
baseURL: process.env.CI
22+
? process.env.CI_DEFAULT_BASE_URL
23+
: (process.env.FRONTEND_BASE_URL ?? 'http://localhost:3001'),
2524
trace: 'retain-on-failure', // trace takes EVERYTHING from page source, records every single step, should be used only when normal debugging won't work
2625
screenshot: 'on', // either 'on' here or in different method in modules, if 'on' all screenshots are overwritten each time the test is run
2726
headless: true, // instead of changing it to false, run 'yarn test:e2e:debug' or 'yarn test:e2e:ui'

0 commit comments

Comments
 (0)