Skip to content

Commit

Permalink
Pass front-end URL in ENV for e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
joepio committed Jul 25, 2023
1 parent 1676d73 commit d4a76aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ jobs:
- run: nohup ./target/debug/atomic-server &
- name: Run end-to-end tests
working-directory: ./browser/
env:
FRONTEND_URL: http://localhost:9883
run: pnpm run test
- name: Upload test artifacts
uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion browser/data-browser/tests/e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const testConfig: TestConfig = {
demoFile: `${process.cwd()}/tests/${demoFileName}`,
demoInviteName: 'document demo',
serverUrl: 'http://localhost:9883',
frontEndUrl: process.env.FRONTEND_URL || 'http://localhost:9883',
frontEndUrl: process.env.FRONTEND_URL || 'http://localhost:5173',
initialTest: true,
};

Expand Down

0 comments on commit d4a76aa

Please sign in to comment.