feat: add playwright base url

This commit is contained in:
a.bouhuolia
2023-04-13 02:33:52 +02:00
parent 7b4b50cf4b
commit 8e8161f207
2 changed files with 3 additions and 1 deletions

View File

@@ -57,6 +57,8 @@ jobs:
- name: Run tests
run: npm run test:e2e
env:
PLAYWRIGHT_TEST_BASE_URL: ${{ needs.test_setup.outputs.preview_url }}
- uses: actions/upload-artifact@v2
if: always()

View File

@@ -24,7 +24,7 @@ const config: PlaywrightTestConfig = {
// contextOptions: {
// ignoreHTTPSErrors: true,
// },
baseURL: 'http://localhost:4000',
baseURL: process.env.PLAYWRIGHT_TEST_BASE_URL || 'http://localhost:4000',
},
projects: [
{