Skip to content

Commit

Permalink
Fixed baseURL in config
Browse files Browse the repository at this point in the history
  • Loading branch information
BOHEUS committed Aug 17, 2024
1 parent db20a35 commit c8273f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion packages/twenty-e2e-testing/.env.example
Original file line number Diff line number Diff line change
@@ -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=[email protected]
NEW_WORKSPACE_LOGIN=[email protected]
DEMO_DEFAULT_LOGIN=[email protected]
Expand Down
7 changes: 3 additions & 4 deletions packages/twenty-e2e-testing/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit c8273f3

Please sign in to comment.