Skip to content

Commit

Permalink
astro-pokedex: fix playwright config
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcpk committed Sep 30, 2023
1 parent 3a2a88f commit 877cd2a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions pokedex-app/astro-pokedex/playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineConfig, devices } from '@playwright/test';
import { defineConfig, devices } from '@playwright/test'

/**
* Read environment variables from file.
Expand All @@ -10,7 +10,7 @@ import { defineConfig, devices } from '@playwright/test';
* See https://playwright.dev/docs/test-configuration.
*/
export default defineConfig({
testDir: './tests',
testDir: './tests/e2e',
/* Run tests in files in parallel */
fullyParallel: true,
/* Fail the build on CI if you accidentally left test.only in the source code. */
Expand Down Expand Up @@ -71,7 +71,11 @@ export default defineConfig({
/* Run your local dev server before starting the tests */
webServer: {
command: 'npm run dev',
url: 'http://127.0.0.1:4321',
url: 'http://localhost:4321/',
timeout: 120 * 1000,
reuseExistingServer: !process.env.CI,
},
});
use: {
baseURL: 'http://localhost:4321/',
},
})

0 comments on commit 877cd2a

Please sign in to comment.