Skip to content

Commit 9e03a6c

Browse files
author
“Rajat
committed
#29: 🌐 Script (Codegen) and Config (Timeout) added
1 parent 3fbb28b commit 9e03a6c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
"description": "This project is a Test Automation Framework built using Playwright and Typescript for automated testing of web applications.",
55
"main": "index.js",
66
"scripts": {
7+
"playwright:codegen": "npx playwright codegen",
8+
79
"playwright:tests": "npx playwright test --headed",
810

911
"tests:ALL": "npx playwright test --headed",
@@ -22,7 +24,7 @@
2224

2325
"tests:ui-mode": "npx playwright test --ui",
2426
"tests:debug": "npx playwright test --debug",
25-
27+
2628
"tests:show:reports-html": "npx playwright show-report",
2729
"tests:CHROME:Tag:SANITY": "npx playwright test --project='Google Chrome' --grep=@sanity",
2830
"tests:CHROME:Tag:REGRESSION": "npx playwright test --project='Google Chrome' --grep=@regression"

playwright.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ import { defineConfig, devices } from '@playwright/test';
1414
export default defineConfig({
1515
// testDir: './tests',
1616
testDir: './tests-saucedemo',
17+
18+
timeout: 60000, // Set the timeout to 60 seconds (in milliseconds)
19+
1720
/* Run tests in files in parallel */
1821
fullyParallel: true,
1922
/* Fail the build on CI if you accidentally left test.only in the source code. */

0 commit comments

Comments
 (0)