Skip to content

Commit

Permalink
chore: add .env.e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJoin95 committed Oct 30, 2024
1 parent a3293a9 commit 2fb0a8e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
run: npm ci
- name: Copy env
run: cp .env.e2e .env
- name: Do DB migrations
run: npm run db:push
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
Expand All @@ -39,6 +41,3 @@ jobs:
name: playwright-report
path: playwright-report/
retention-days: 30
- name: Stop application
if: always()
run: docker compose down
11 changes: 3 additions & 8 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default defineConfig({
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
baseURL: 'http://127.0.0.1:3001',
baseURL: 'http://localhost:3000',

/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
Expand All @@ -39,11 +39,6 @@ export default defineConfig({
use: { ...devices['Desktop Firefox'] },
},

{
name: 'webkit',
use: { ...devices['Desktop Safari'] },
},

/* Test against mobile viewports. */
// {
// name: 'Mobile Chrome',
Expand All @@ -67,8 +62,8 @@ export default defineConfig({

/* Run your local dev server before starting the tests */
webServer: {
command: 'npm run build',
url: 'http://127.0.0.1:3001',
command: 'npm run dev',
url: 'http://localhost:3000',
reuseExistingServer: !process.env.CI,
},
});

0 comments on commit 2fb0a8e

Please sign in to comment.