Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ export default defineConfig({

/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
testIdAttribute: 'id',
actionTimeout: 10 * 1000,
navigationTimeout: 30 * 1000,
},

/* Configure projects for major browsers */
Expand All @@ -39,15 +42,15 @@ export default defineConfig({
use: { ...devices['Desktop Chrome'] },
},

{
name: 'firefox',
use: { ...devices['Desktop Firefox'] },
},
// {
// name: 'firefox',
// use: { ...devices['Desktop Firefox'] },
// },

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

/* Test against mobile viewports. */
// {
Expand Down
13 changes: 13 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#### run each case
`npx playwright test {name}.spec.ts`
e.g -> `npx playwright test example.spec.ts`

#### run with codegen
`npx playwright codegen [Link]{}`
e.g -> `npx playwright codegen https://ecommerce-playground.lambdatest.io/`

#### show report
`npx playwright show-report`

#### run in UI mode
`npx playwright test --ui`
Loading
Loading