-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
185 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ logs | |
node_modules | ||
temp | ||
.vercel | ||
test/output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import type { PlaywrightTestConfig } from '@playwright/test' | ||
import { devices } from '@playwright/test' | ||
|
||
const PORT = process.env.PORT || 3000 | ||
const baseURL = `http://localhost:${PORT}` | ||
|
||
// Reference: https://playwright.dev/docs/test-configuration | ||
const config: PlaywrightTestConfig = { | ||
timeout: 30 * 1000, | ||
testDir: 'test', | ||
testMatch: 'test/e2e.test.ts', | ||
forbidOnly: Boolean(process.env.CI), | ||
retries: process.env.CI ? 2 : 0, | ||
|
||
// Run your local dev server before starting the tests: | ||
// https://playwright.dev/docs/test-advanced#launching-a-development-web-server-during-the-tests | ||
webServer: { | ||
command: 'pnpm run --filter=example dev', | ||
url: baseURL, | ||
timeout: 120 * 1000, | ||
reuseExistingServer: !process.env.CI | ||
}, | ||
|
||
use: { | ||
trace: 'retry-with-trace', | ||
headless: true, | ||
baseURL | ||
}, | ||
|
||
projects: [ | ||
{ | ||
name: 'Desktop Chrome', | ||
use: { | ||
...devices['Desktop Chrome'] | ||
} | ||
} | ||
// { | ||
// name: 'Mobile Chrome', | ||
// use: { | ||
// ...devices['Pixel 5'] | ||
// } | ||
// }, | ||
// { | ||
// name: 'Mobile Safari', | ||
// use: devices['iPhone 13'] | ||
// } | ||
] | ||
} | ||
export default config |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
7d2b173
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
react-turnstile – ./
react-turnstile.vercel.app
react-turnstile-marsi.vercel.app
react-turnstile-git-main-marsi.vercel.app