@sridharkikkeri/playwright-common 1.0.44 → 1.0.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -61,13 +61,22 @@ const packageJson = {
61
61
  'test:auto': 'TEST_ENV=auto playwright test',
62
62
  'test:staging': 'TEST_ENV=staging playwright test',
63
63
  'test:prod': 'TEST_ENV=prod playwright test',
64
+ 'test:headed': 'playwright test --headed',
65
+ 'test:debug': 'playwright test --debug',
66
+ 'test:ui': 'playwright test --ui',
67
+ 'codegen': 'playwright codegen',
68
+ 'show-report': 'playwright show-report',
69
+ 'install-browsers': 'playwright install',
70
+ 'screenshot': 'playwright screenshot',
71
+ 'pdf': 'playwright pdf',
64
72
  'report': 'allure generate allure-results --clean -o allure-report && allure open allure-report',
65
73
  'lint': 'eslint .',
66
74
  'lint:fix': 'eslint . --fix'
67
75
  },
68
76
  dependencies: {
69
77
  '@playwright/test': '^1.42.0',
70
- 'allure-playwright': '^3.4.5'
78
+ 'allure-playwright': '^3.4.5',
79
+ 'playwright': '^1.42.0'
71
80
  },
72
81
  devDependencies: {
73
82
  '@typescript-eslint/eslint-plugin': '^8.55.0',
@@ -273,6 +282,19 @@ npm run test:dev
273
282
  npm run report
274
283
  \`\`\`
275
284
 
285
+ ## Playwright CLI Commands
286
+
287
+ \`\`\`bash
288
+ npm run test:headed # Run tests in headed mode
289
+ npm run test:debug # Debug tests with Playwright Inspector
290
+ npm run test:ui # Run tests in UI mode
291
+ npm run codegen # Generate test code with Codegen
292
+ npm run show-report # Show HTML report
293
+ npm run install-browsers # Install browser binaries
294
+ npm run screenshot <url> # Take screenshot of URL
295
+ npm run pdf <url> # Generate PDF of URL
296
+ \`\`\`
297
+
276
298
  ## Environment-Specific Tests
277
299
 
278
300
  \`\`\`bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sridharkikkeri/playwright-common",
3
- "version": "1.0.44",
3
+ "version": "1.0.46",
4
4
  "description": "Production-grade Playwright framework with AI-powered self-healing, visual regression, and enterprise features",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",