Skip to content

Commit

Permalink
fix: fix e2e api test hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
Angus Chen committed Oct 9, 2023
1 parent 4862ac4 commit d617837
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/e2e/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,12 @@ const config: PlaywrightTestConfig = {
/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
actionTimeout: 0,
/* Base URL to use in actions like `await page.goto('/')`. */
// baseURL:
// 'http://local.dazedbear.pro:3000',
baseURL: isCI
? `${get(website, [currentEnv, 'protocol'])}://${get(website, [
currentEnv,
'host',
])}`
: 'http://local.dazedbear.pro:3000',
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
},
Expand Down

0 comments on commit d617837

Please sign in to comment.