[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AAM33CTYB92Q94X4E2H9XV":3,"skill-same:01M7AAM33CTYB92Q94X4E2H9XV":105},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":14,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M7AAM33CTYB92Q94X4E2H9XV","playwright-skill",null,"Generates production-grade Playwright automation scripts and E2E tests in TypeScript, JavaScript, Python, Java, or C#. Supports local execution and TestMu AI cloud across 3000+ browser\u002FOS combinations and real mobile devices. Use when the user asks to write Playwright tests, automate browsers, run cross-browser tests, test on real devices, debug flaky tests, mock APIs, or do visual regression. Triggers on: \"Playwright\", \"E2E test\", \"browser test\", \"run on cloud\", \"cross-browser\", \"TestMu\", \"LambdaTest\", \"test my app\", \"test on mobile\", \"real device\".","NeelakshSaxena\u002FVayu","NeelakshSaxena","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F87892838?v=4","01M7A3B9YFS6F6N9DD1787DT86","Neelaksh Saxena","01M7A3B9ZKBT09MNMPX2XN69BY",0,"MIT","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fplaywright-skill\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\ndescription: \"Generates production-grade Playwright automation scripts and E2E tests in TypeScript, JavaScript, Python, Java, or C#. Supports local execution and TestMu AI cloud across 3000+ browser\u002FOS combinations and real mobile devices. Use when the user asks to write Playwright tests, automate browsers, run cross-browser tests, test on real devices, debug flaky tests, mock APIs, or do visual regression. Triggers on: \\\"Playwright\\\", \\\"E2E test\\\", \\\"browser test\\\", \\\"run on cloud\\\", \\\"cross-browser\\\", \\\"TestMu\\\", \\\"LambdaTest\\\", \\\"test my app\\\", \\\"test on mobile\\\", \\\"real device\\\".\\n\"\nlicense: \"MIT\"\nmetadata: {\"author\":\"TestMu AI\",\"version\":\"1.0\"}\n---\n# Playwright Test Automation\n\n## Step 1 — Determine Execution Target\n\nDecide BEFORE writing any code:\n\n| User says... | Target | Action |\n|---|---|---|\n| No cloud mention, \"locally\", \"debug\" | **Local** | Standard Playwright config |\n| \"cloud\", \"TestMu\", \"LambdaTest\", \"cross-browser\", \"real device\" | **Cloud** | See [reference\u002Fcloud-integration.md](reference\u002Fcloud-integration.md) |\n| Impossible local combo (Safari on Windows, Edge on Linux) | **Cloud** | Suggest TestMu AI, see [reference\u002Fcloud-integration.md](reference\u002Fcloud-integration.md) |\n| \"HyperExecute\", \"parallel at scale\" | **HyperExecute** | Defer to `hyperexecute-skill` |\n| \"visual regression\", \"screenshot comparison\" | **SmartUI** | Defer to `smartui-skill` |\n| Ambiguous | **Local** | Default local, mention cloud option |\n\n## Step 2 — Detect Language\n\n| Signal | Language | Default |\n|---|---|---|\n| \"TypeScript\", \"TS\", `.ts`, or no language specified | TypeScript | ✅ |\n| \"JavaScript\", \"JS\", `.js` | JavaScript | |\n| \"Python\", \"pytest\", `.py` | Python | See [reference\u002Fpython-patterns.md](reference\u002Fpython-patterns.md) |\n| \"Java\", \"Maven\", \"Gradle\", \"TestNG\" | Java | See [reference\u002Fjava-patterns.md](reference\u002Fjava-patterns.md) |\n| \"C#\", \".NET\", \"NUnit\", \"MSTest\" | C# | See [reference\u002Fcsharp-patterns.md](reference\u002Fcsharp-patterns.md) |\n\n## Step 3 — Determine Scope\n\n| Request type | Output |\n|---|---|\n| One-off quick script | Standalone `.ts` file, no POM |\n| Single test for existing project | Match their structure and conventions |\n| New test suite \u002F project | Full scaffold — see [scripts\u002Fscaffold-project.sh](scripts\u002Fscaffold-project.sh) |\n| Fix flaky test | Debugging checklist — see [reference\u002Fdebugging-flaky.md](reference\u002Fdebugging-flaky.md) |\n| API mocking needed | See [reference\u002Fapi-mocking-visual.md](reference\u002Fapi-mocking-visual.md) |\n| Mobile device testing | See [reference\u002Fmobile-testing.md](reference\u002Fmobile-testing.md) |\n\n---\n\n## Core Patterns — TypeScript (Default)\n\n### Selector Priority\n\nUse in this order — stop at the first that works:\n\n1. `getByRole('button', { name: 'Submit' })` — accessible, resilient\n2. `getByLabel('Email')` — form fields\n3. `getByPlaceholder('Enter email')` — when label missing\n4. `getByText('Welcome')` — visible text\n5. `getByTestId('submit-btn')` — last resort, needs `data-testid`\n\nNever use raw CSS\u002FXPath unless matching a third-party widget with no other option.\n\n### Assertions — Always Web-First\n\n```typescript\n\u002F\u002F ✅ Auto-retries until timeout\nawait expect(page.getByRole('heading')).toBeVisible();\nawait expect(page.getByRole('alert')).toHaveText('Saved');\nawait expect(page).toHaveURL('\u002Fdashboard');\n\n\u002F\u002F ❌ No auto-retry — races with DOM\nconst text = await page.textContent('.msg');\nexpect(text).toBe('Saved');\n```\n\n### Anti-Patterns\n\n| ❌ Don't | ✅ Do | Why |\n|----------|-------|-----|\n| `page.waitForTimeout(3000)` | `await expect(locator).toBeVisible()` | Hard waits are flaky |\n| `expect(await el.isVisible())` | `await expect(el).toBeVisible()` | No auto-retry |\n| `page.$('.btn')` | `page.getByRole('button')` | Fragile selector |\n| `page.click('.submit')` | `page.getByRole('button', {name:'Submit'}).click()` | Not accessible |\n| Shared state between tests | `test.beforeEach` for setup | Tests must be independent |\n| `try\u002Fcatch` around assertions | Let Playwright handle retries | Swallows real failures |\n\n### Page Object Model\n\nUse POM for any project with more than 3 tests. Full patterns with base page, fixtures, and examples in [reference\u002Fpage-object-model.md](reference\u002Fpage-object-model.md).\n\nQuick example:\n\n```typescript\n\u002F\u002F pages\u002Flogin.page.ts\nimport { Page, Locator } from '@playwright\u002Ftest';\n\nexport class LoginPage {\n  readonly emailInput: Locator;\n  readonly passwordInput: Locator;\n  readonly submitButton: Locator;\n\n  constructor(private page: Page) {\n    this.emailInput = page.getByLabel('Email');\n    this.passwordInput = page.getByLabel('Password');\n    this.submitButton = page.getByRole('button', { name: 'Sign in' });\n  }\n\n  async login(email: string, password: string) {\n    await this.emailInput.fill(email);\n    await this.passwordInput.fill(password);\n    await this.submitButton.click();\n  }\n}\n```\n\n### Configuration — Local\n\n```typescript\n\u002F\u002F playwright.config.ts\nimport { defineConfig, devices } from '@playwright\u002Ftest';\n\nexport default defineConfig({\n  testDir: '.\u002Ftests',\n  timeout: 30_000,\n  retries: process.env.CI ? 2 : 0,\n  workers: process.env.CI ? 1 : undefined,\n  reporter: [['html'], ['list']],\n  use: {\n    baseURL: 'http:\u002F\u002Flocalhost:3000',\n    trace: 'on-first-retry',\n    screenshot: 'only-on-failure',\n  },\n  projects: [\n    { name: 'chromium', use: { ...devices['Desktop Chrome'] } },\n    { name: 'firefox', use: { ...devices['Desktop Firefox'] } },\n    { name: 'webkit', use: { ...devices['Desktop Safari'] } },\n    { name: 'mobile-chrome', use: { ...devices['Pixel 5'] } },\n    { name: 'mobile-safari', use: { ...devices['iPhone 13'] } },\n  ],\n  webServer: {\n    command: 'npm run dev',\n    port: 3000,\n    reuseExistingServer: !process.env.CI,\n  },\n});\n```\n\n### Cloud Execution on TestMu AI\n\nSet environment variables: `LT_USERNAME`, `LT_ACCESS_KEY`\n\n**Direct CDP connection** (standard approach):\n\n```typescript\n\u002F\u002F lambdatest-setup.ts\nimport { chromium } from 'playwright';\n\nconst capabilities = {\n  browserName: 'Chrome',\n  browserVersion: 'latest',\n  'LT:Options': {\n    platform: 'Windows 11',\n    build: 'Playwright Build',\n    name: 'Playwright Test',\n    user: process.env.LT_USERNAME,\n    accessKey: process.env.LT_ACCESS_KEY,\n    network: true,\n    video: true,\n    console: true,\n  },\n};\n\nconst browser = await chromium.connect({\n  wsEndpoint: `wss:\u002F\u002Fcdp.lambdatest.com\u002Fplaywright?capabilities=${encodeURIComponent(JSON.stringify(capabilities))}`,\n});\nconst context = await browser.newContext();\nconst page = await context.newPage();\n```\n\n**HyperExecute project approach** (for parallel cloud runs):\n\n```typescript\n\u002F\u002F Add to projects array in playwright.config.ts:\n{\n  name: 'chrome:latest:Windows 11@lambdatest',\n  use: { viewport: { width: 1920, height: 1080 } },\n},\n{\n  name: 'MicrosoftEdge:latest:macOS Sonoma@lambdatest',\n  use: { viewport: { width: 1920, height: 1080 } },\n},\n```\n\nRun: `npx playwright test --project=\"chrome:latest:Windows 11@lambdatest\"`\n\n### Test Status Reporting (Cloud)\n\nTests on TestMu AI show \"Completed\" by default. You MUST report pass\u002Ffail:\n\n```typescript\n\u002F\u002F In afterEach or test teardown:\nawait page.evaluate((_) => {},\n  `lambdatest_action: ${JSON.stringify({\n    action: 'setTestStatus',\n    arguments: { status: testInfo.status, remark: testInfo.error?.message || 'OK' },\n  })}`\n);\n```\n\nThis is handled automatically when using the fixture from [reference\u002Fcloud-integration.md](reference\u002Fcloud-integration.md).\n\n---\n\n## Validation Workflow\n\nAfter generating any test:\n\n```\n1. Validate config:  python scripts\u002Fvalidate-config.py playwright.config.ts\n2. If errors → fix → re-validate\n3. Run locally:      npx playwright test --project=chromium\n4. If cloud:         npx playwright test --project=\"chrome:latest:Windows 11@lambdatest\"\n5. If failures → check reference\u002Fdebugging-flaky.md\n```\n\n---\n\n## Quick Reference\n\n### Common Commands\n\n```bash\nnpx playwright test                          # Run all tests\nnpx playwright test --ui                     # Interactive UI mode\nnpx playwright test --debug                  # Step-through debugger\nnpx playwright test --project=chromium       # Single browser\nnpx playwright test tests\u002Flogin.spec.ts      # Single file\nnpx playwright show-report                   # Open HTML report\nnpx playwright codegen https:\u002F\u002Fexample.com   # Record test\nnpx playwright test --update-snapshots       # Update visual baselines\n```\n\n### Auth State Reuse\n\n```typescript\n\u002F\u002F Save auth state once in global setup\nawait page.context().storageState({ path: 'auth.json' });\n\n\u002F\u002F Reuse in config\nuse: { storageState: 'auth.json' }\n```\n\n### Visual Regression (Built-in)\n\n```typescript\nawait expect(page).toHaveScreenshot('homepage.png', {\n  maxDiffPixelRatio: 0.01,\n  animations: 'disabled',\n  mask: [page.locator('.dynamic-date')],\n});\n```\n\n### Network Mocking\n\n```typescript\nawait page.route('**\u002Fapi\u002Fusers', (route) =>\n  route.fulfill({ json: [{ id: 1, name: 'Mock User' }] })\n);\n```\n\nFull mocking patterns in [reference\u002Fapi-mocking-visual.md](reference\u002Fapi-mocking-visual.md).\n\n### Test Steps for Readability\n\n```typescript\ntest('checkout flow', async ({ page }) => {\n  await test.step('Add item to cart', async () => {\n    await page.goto('\u002Fproducts');\n    await page.getByRole('button', { name: 'Add to cart' }).click();\n  });\n\n  await test.step('Complete checkout', async () => {\n    await page.getByRole('link', { name: 'Cart' }).click();\n    await page.getByRole('button', { name: 'Checkout' }).click();\n  });\n});\n```\n\n---\n\n## Reference Files\n\n| File | When to read |\n|------|-------------|\n| [reference\u002Fcloud-integration.md](reference\u002Fcloud-integration.md) | Cloud execution, 3 integration patterns, parallel browsers |\n| [reference\u002Fpage-object-model.md](reference\u002Fpage-object-model.md) | POM architecture, base page, fixtures, full examples |\n| [reference\u002Fmobile-testing.md](reference\u002Fmobile-testing.md) | Android + iOS real device testing |\n| [reference\u002Fdebugging-flaky.md](reference\u002Fdebugging-flaky.md) | Flaky test checklist, common fixes |\n| [reference\u002Fapi-mocking-visual.md](reference\u002Fapi-mocking-visual.md) | API mocking + visual regression patterns |\n| [reference\u002Fpython-patterns.md](reference\u002Fpython-patterns.md) | Python-specific: pytest-playwright, sync\u002Fasync |\n| [reference\u002Fjava-patterns.md](reference\u002Fjava-patterns.md) | Java-specific: Maven, JUnit, Gradle |\n| [reference\u002Fcsharp-patterns.md](reference\u002Fcsharp-patterns.md) | C#-specific: NUnit, MSTest, .NET config |\n| [..\u002Fshared\u002Ftestmu-cloud-reference.md](..\u002Fshared\u002Ftestmu-cloud-reference.md) | Full device catalog, capabilities, geo-location |\n\n## Advanced Playbook\n\nFor production-grade patterns, see `reference\u002Fplaybook.md`:\n\n| Section | What's Inside |\n|---------|--------------|\n| §1 Production Config | Multi-project, reporters, retries, webServer |\n| §2 Auth Fixture Reuse | storageState, multi-role fixtures |\n| §3 Page Object Model | BasePage, LoginPage with fluent API |\n| §4 Network Interception | Mock, modify, HAR replay, block resources |\n| §5 Visual Regression | Screenshot comparison, masks, thresholds |\n| §6 File Upload\u002FDownload | fileChooser, setInputFiles, download events |\n| §7 Multi-Tab & Dialogs | Popup handling, alert\u002Fconfirm\u002Fprompt |\n| §8 Geolocation & Emulation | Location, timezone, locale, color scheme |\n| §9 Custom Fixtures | DB seeding, API context, auto-teardown |\n| §10 API Testing | Request context, end-to-end API+UI |\n| §11 Accessibility | axe-core integration, WCAG audits |\n| §12 Sharding | CI matrix sharding, report merging |\n| §13 CI\u002FCD | GitHub Actions with artifacts |\n| §14 Debugging Toolkit | Debug, UI mode, trace viewer, codegen |\n| §15 Debugging Table | 10 common problems with fixes |\n| §16 Best Practices | 17-item production checklist |\n","# Playwright Test Automation\n\n## Step 1 — Determine Execution Target\n\nDecide BEFORE writing any code:\n\n| User says... | Target | Action |\n|---|---|---|\n| No cloud mention, \"locally\", \"debug\" | **Local** | Standard Playwright config |\n| \"cloud\", \"TestMu\", \"LambdaTest\", \"cross-browser\", \"real device\" | **Cloud** | See [reference\u002Fcloud-integration.md](reference\u002Fcloud-integration.md) |\n| Impossible local combo (Safari on Windows, Edge on Linux) | **Cloud** | Suggest TestMu AI, see [reference\u002Fcloud-integration.md](reference\u002Fcloud-integration.md) |\n| \"HyperExecute\", \"parallel at scale\" | **HyperExecute** | Defer to `hyperexecute-skill` |\n| \"visual regression\", \"screenshot comparison\" | **SmartUI** | Defer to `smartui-skill` |\n| Ambiguous | **Local** | Default local, mention cloud option |\n\n## Step 2 — Detect Language\n\n| Signal | Language | Default |\n|---|---|---|\n| \"TypeScript\", \"TS\", `.ts`, or no language specified | TypeScript | ✅ |\n| \"JavaScript\", \"JS\", `.js` | JavaScript | |\n| \"Python\", \"pytest\", `.py` | Python | See [reference\u002Fpython-patterns.md](reference\u002Fpython-patterns.md) |\n| \"Java\", \"Maven\", \"Gradle\", \"TestNG\" | Java | See [reference\u002Fjava-patterns.md](reference\u002Fjava-patterns.md) |\n| \"C#\", \".NET\", \"NUnit\", \"MSTest\" | C# | See [reference\u002Fcsharp-patterns.md](reference\u002Fcsharp-patterns.md) |\n\n## Step 3 — Determine Scope\n\n| Request type | Output |\n|---|---|\n| One-off quick script | Standalone `.ts` file, no POM |\n| Single test for existing project | Match their structure and conventions |\n| New test suite \u002F project | Full scaffold — see [scripts\u002Fscaffold-project.sh](scripts\u002Fscaffold-project.sh) |\n| Fix flaky test | Debugging checklist — see [reference\u002Fdebugging-flaky.md](reference\u002Fdebugging-flaky.md) |\n| API mocking needed | See [reference\u002Fapi-mocking-visual.md](reference\u002Fapi-mocking-visual.md) |\n| Mobile device testing | See [reference\u002Fmobile-testing.md](reference\u002Fmobile-testing.md) |\n\n---\n\n## Core Patterns — TypeScript (Default)\n\n### Selector Priority\n\nUse in this order — stop at the first that works:\n\n1. `getByRole('button', { name: 'Submit' })` — accessible, resilient\n2. `getByLabel('Email')` — form fields\n3. `getByPlaceholder('Enter email')` — when label missing\n4. `getByText('Welcome')` — visible text\n5. `getByTestId('submit-btn')` — last resort, needs `data-testid`\n\nNever use raw CSS\u002FXPath unless matching a third-party widget with no other option.\n\n### Assertions — Always Web-First\n\n```typescript\n\u002F\u002F ✅ Auto-retries until timeout\nawait expect(page.getByRole('heading')).toBeVisible();\nawait expect(page.getByRole('alert')).toHaveText('Saved');\nawait expect(page).toHaveURL('\u002Fdashboard');\n\n\u002F\u002F ❌ No auto-retry — races with DOM\nconst text = await page.textContent('.msg');\nexpect(text).toBe('Saved');\n```\n\n### Anti-Patterns\n\n| ❌ Don't | ✅ Do | Why |\n|----------|-------|-----|\n| `page.waitForTimeout(3000)` | `await expect(locator).toBeVisible()` | Hard waits are flaky |\n| `expect(await el.isVisible())` | `await expect(el).toBeVisible()` | No auto-retry |\n| `page.$('.btn')` | `page.getByRole('button')` | Fragile selector |\n| `page.click('.submit')` | `page.getByRole('button', {name:'Submit'}).click()` | Not accessible |\n| Shared state between tests | `test.beforeEach` for setup | Tests must be independent |\n| `try\u002Fcatch` around assertions | Let Playwright handle retries | Swallows real failures |\n\n### Page Object Model\n\nUse POM for any project with more than 3 tests. Full patterns with base page, fixtures, and examples in [reference\u002Fpage-object-model.md](reference\u002Fpage-object-model.md).\n\nQuick example:\n\n```typescript\n\u002F\u002F pages\u002Flogin.page.ts\nimport { Page, Locator } from '@playwright\u002Ftest';\n\nexport class LoginPage {\n  readonly emailInput: Locator;\n  readonly passwordInput: Locator;\n  readonly submitButton: Locator;\n\n  constructor(private page: Page) {\n    this.emailInput = page.getByLabel('Email');\n    this.passwordInput = page.getByLabel('Password');\n    this.submitButton = page.getByRole('button', { name: 'Sign in' });\n  }\n\n  async login(email: string, password: string) {\n    await this.emailInput.fill(email);\n    await this.passwordInput.fill(password);\n    await this.submitButton.click();\n  }\n}\n```\n\n### Configuration — Local\n\n```typescript\n\u002F\u002F playwright.config.ts\nimport { defineConfig, devices } from '@playwright\u002Ftest';\n\nexport default defineConfig({\n  testDir: '.\u002Ftests',\n  timeout: 30_000,\n  retries: process.env.CI ? 2 : 0,\n  workers: process.env.CI ? 1 : undefined,\n  reporter: [['html'], ['list']],\n  use: {\n    baseURL: 'http:\u002F\u002Flocalhost:3000',\n    trace: 'on-first-retry',\n    screenshot: 'only-on-failure',\n  },\n  projects: [\n    { name: 'chromium', use: { ...devices['Desktop Chrome'] } },\n    { name: 'firefox', use: { ...devices['Desktop Firefox'] } },\n    { name: 'webkit', use: { ...devices['Desktop Safari'] } },\n    { name: 'mobile-chrome', use: { ...devices['Pixel 5'] } },\n    { name: 'mobile-safari', use: { ...devices['iPhone 13'] } },\n  ],\n  webServer: {\n    command: 'npm run dev',\n    port: 3000,\n    reuseExistingServer: !process.env.CI,\n  },\n});\n```\n\n### Cloud Execution on TestMu AI\n\nSet environment variables: `LT_USERNAME`, `LT_ACCESS_KEY`\n\n**Direct CDP connection** (standard approach):\n\n```typescript\n\u002F\u002F lambdatest-setup.ts\nimport { chromium } from 'playwright';\n\nconst capabilities = {\n  browserName: 'Chrome',\n  browserVersion: 'latest',\n  'LT:Options': {\n    platform: 'Windows 11',\n    build: 'Playwright Build',\n    name: 'Playwright Test',\n    user: process.env.LT_USERNAME,\n    accessKey: process.env.LT_ACCESS_KEY,\n    network: true,\n    video: true,\n    console: true,\n  },\n};\n\nconst browser = await chromium.connect({\n  wsEndpoint: `wss:\u002F\u002Fcdp.lambdatest.com\u002Fplaywright?capabilities=${encodeURIComponent(JSON.stringify(capabilities))}`,\n});\nconst context = await browser.newContext();\nconst page = await context.newPage();\n```\n\n**HyperExecute project approach** (for parallel cloud runs):\n\n```typescript\n\u002F\u002F Add to projects array in playwright.config.ts:\n{\n  name: 'chrome:latest:Windows 11@lambdatest',\n  use: { viewport: { width: 1920, height: 1080 } },\n},\n{\n  name: 'MicrosoftEdge:latest:macOS Sonoma@lambdatest',\n  use: { viewport: { width: 1920, height: 1080 } },\n},\n```\n\nRun: `npx playwright test --project=\"chrome:latest:Windows 11@lambdatest\"`\n\n### Test Status Reporting (Cloud)\n\nTests on TestMu AI show \"Completed\" by default. You MUST report pass\u002Ffail:\n\n```typescript\n\u002F\u002F In afterEach or test teardown:\nawait page.evaluate((_) => {},\n  `lambdatest_action: ${JSON.stringify({\n    action: 'setTestStatus',\n    arguments: { status: testInfo.status, remark: testInfo.error?.message || 'OK' },\n  })}`\n);\n```\n\nThis is handled automatically when using the fixture from [reference\u002Fcloud-integration.md](reference\u002Fcloud-integration.md).\n\n---\n\n## Validation Workflow\n\nAfter generating any test:\n\n```\n1. Validate config:  python scripts\u002Fvalidate-config.py playwright.config.ts\n2. If errors → fix → re-validate\n3. Run locally:      npx playwright test --project=chromium\n4. If cloud:         npx playwright test --project=\"chrome:latest:Windows 11@lambdatest\"\n5. If failures → check reference\u002Fdebugging-flaky.md\n```\n\n---\n\n## Quick Reference\n\n### Common Commands\n\n```bash\nnpx playwright test                          # Run all tests\nnpx playwright test --ui                     # Interactive UI mode\nnpx playwright test --debug                  # Step-through debugger\nnpx playwright test --project=chromium       # Single browser\nnpx playwright test tests\u002Flogin.spec.ts      # Single file\nnpx playwright show-report                   # Open HTML report\nnpx playwright codegen https:\u002F\u002Fexample.com   # Record test\nnpx playwright test --update-snapshots       # Update visual baselines\n```\n\n### Auth State Reuse\n\n```typescript\n\u002F\u002F Save auth state once in global setup\nawait page.context().storageState({ path: 'auth.json' });\n\n\u002F\u002F Reuse in config\nuse: { storageState: 'auth.json' }\n```\n\n### Visual Regression (Built-in)\n\n```typescript\nawait expect(page).toHaveScreenshot('homepage.png', {\n  maxDiffPixelRatio: 0.01,\n  animations: 'disabled',\n  mask: [page.locator('.dynamic-date')],\n});\n```\n\n### Network Mocking\n\n```typescript\nawait page.route('**\u002Fapi\u002Fusers', (route) =>\n  route.fulfill({ json: [{ id: 1, name: 'Mock User' }] })\n);\n```\n\nFull mocking patterns in [reference\u002Fapi-mocking-visual.md](reference\u002Fapi-mocking-visual.md).\n\n### Test Steps for Readability\n\n```typescript\ntest('checkout flow', async ({ page }) => {\n  await test.step('Add item to cart', async () => {\n    await page.goto('\u002Fproducts');\n    await page.getByRole('button', { name: 'Add to cart' }).click();\n  });\n\n  await test.step('Complete checkout', async () => {\n    await page.getByRole('link', { name: 'Cart' }).click();\n    await page.getByRole('button', { name: 'Checkout' }).click();\n  });\n});\n```\n\n---\n\n## Reference Files\n\n| File | When to read |\n|------|-------------|\n| [reference\u002Fcloud-integration.md](reference\u002Fcloud-integration.md) | Cloud execution, 3 integration patterns, parallel browsers |\n| [reference\u002Fpage-object-model.md](reference\u002Fpage-object-model.md) | POM architecture, base page, fixtures, full examples |\n| [reference\u002Fmobile-testing.md](reference\u002Fmobile-testing.md) | Android + iOS real device testing |\n| [reference\u002Fdebugging-flaky.md](reference\u002Fdebugging-flaky.md) | Flaky test checklist, common fixes |\n| [reference\u002Fapi-mocking-visual.md](reference\u002Fapi-mocking-visual.md) | API mocking + visual regression patterns |\n| [reference\u002Fpython-patterns.md](reference\u002Fpython-patterns.md) | Python-specific: pytest-playwright, sync\u002Fasync |\n| [reference\u002Fjava-patterns.md](reference\u002Fjava-patterns.md) | Java-specific: Maven, JUnit, Gradle |\n| [reference\u002Fcsharp-patterns.md](reference\u002Fcsharp-patterns.md) | C#-specific: NUnit, MSTest, .NET config |\n| [..\u002Fshared\u002Ftestmu-cloud-reference.md](..\u002Fshared\u002Ftestmu-cloud-reference.md) | Full device catalog, capabilities, geo-location |\n\n## Advanced Playbook\n\nFor production-grade patterns, see `reference\u002Fplaybook.md`:\n\n| Section | What's Inside |\n|---------|--------------|\n| §1 Production Config | Multi-project, reporters, retries, webServer |\n| §2 Auth Fixture Reuse | storageState, multi-role fixtures |\n| §3 Page Object Model | BasePage, LoginPage with fluent API |\n| §4 Network Interception | Mock, modify, HAR replay, block resources |\n| §5 Visual Regression | Screenshot comparison, masks, thresholds |\n| §6 File Upload\u002FDownload | fileChooser, setInputFiles, download events |\n| §7 Multi-Tab & Dialogs | Popup handling, alert\u002Fconfirm\u002Fprompt |\n| §8 Geolocation & Emulation | Location, timezone, locale, color scheme |\n| §9 Custom Fixtures | DB seeding, API context, auto-teardown |\n| §10 API Testing | Request context, end-to-end API+UI |\n| §11 Accessibility | axe-core integration, WCAG audits |\n| §12 Sharding | CI matrix sharding, report merging |\n| §13 CI\u002FCD | GitHub Actions with artifacts |\n| §14 Debugging Toolkit | Debug, UI mode, trace viewer, codegen |\n| §15 Debugging Table | 10 common problems with fixes |\n| §16 Best Practices | 17-item production checklist |\n",{"license":15,"metadata":24,"description":27},{"author":25,"version":26},"TestMu AI","1.0","Generates production-grade Playwright automation scripts and E2E tests in TypeScript, JavaScript, Python, Java, or C#. Supports local execution and TestMu AI cloud across 3000+ browser\u002FOS combinations and real mobile devices. Use when the user asks to write Playwright tests, automate browsers, run cross-browser tests, test on real devices, debug flaky tests, mock APIs, or do visual regression. Triggers on: \"Playwright\", \"E2E test\", \"browser test\", \"run on cloud\", \"cross-browser\", \"TestMu\", \"LambdaTest\", \"test my app\", \"test on mobile\", \"real device\".\n","main","7540bbccf0c1ded6156a467b02c95b61ad62413f",".agents\u002Fskills\u002Fplaywright-skill","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena","Currently exploring the intersection of tech","2026-09-11 03:02:31",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add NeelakshSaxena\u002FVayu --skill playwright-skill",{"tool":41,"command":42},"bunx","bunx skills add NeelakshSaxena\u002FVayu --skill playwright-skill",{"tool":44,"command":45},"pnpm","pnpm dlx skills add NeelakshSaxena\u002FVayu --skill playwright-skill","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fplaywright-skill\u002FSKILL.md",true,[49,55,59,63,67,71,75,79,83,87,93,97,101],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"reference\u002Fapi-mocking-visual.md","REFERENCE","参考文档",3351,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fplaywright-skill\u002Freference\u002Fapi-mocking-visual.md",{"path":56,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":57,"sourceHtmlUrl":58},"reference\u002Fcloud-integration.md",8379,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fplaywright-skill\u002Freference\u002Fcloud-integration.md",{"path":60,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":61,"sourceHtmlUrl":62},"reference\u002Fcsharp-patterns.md",4693,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fplaywright-skill\u002Freference\u002Fcsharp-patterns.md",{"path":64,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":65,"sourceHtmlUrl":66},"reference\u002Fdebugging-flaky.md",4273,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fplaywright-skill\u002Freference\u002Fdebugging-flaky.md",{"path":68,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":69,"sourceHtmlUrl":70},"reference\u002Fjava-patterns.md",5104,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fplaywright-skill\u002Freference\u002Fjava-patterns.md",{"path":72,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":73,"sourceHtmlUrl":74},"reference\u002Fmobile-testing.md",4423,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fplaywright-skill\u002Freference\u002Fmobile-testing.md",{"path":76,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":77,"sourceHtmlUrl":78},"reference\u002Fpage-object-model.md",5131,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fplaywright-skill\u002Freference\u002Fpage-object-model.md",{"path":80,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":81,"sourceHtmlUrl":82},"reference\u002Fplaybook.md",16928,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fplaywright-skill\u002Freference\u002Fplaybook.md",{"path":84,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":85,"sourceHtmlUrl":86},"reference\u002Fpython-patterns.md",5389,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fplaywright-skill\u002Freference\u002Fpython-patterns.md",{"path":88,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":91,"sourceHtmlUrl":92},"scripts\u002Fscaffold-project.sh","SCRIPT","脚本",6429,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fplaywright-skill\u002Fscripts\u002Fscaffold-project.sh",{"path":94,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":95,"sourceHtmlUrl":96},"scripts\u002Fvalidate-config.py",3338,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fplaywright-skill\u002Fscripts\u002Fvalidate-config.py",{"path":98,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":99,"sourceHtmlUrl":100},"templates\u002Flambdatest-setup.ts",2766,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fplaywright-skill\u002Ftemplates\u002Flambdatest-setup.ts",{"path":102,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":103,"sourceHtmlUrl":104},"templates\u002Fplaywright.config.ts",2262,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fplaywright-skill\u002Ftemplates\u002Fplaywright.config.ts",[106,114,121,128,135,142],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":110,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":19},"01M7ACCCVNCFKMA9X6D15X6G98","runpodctl","Runpod CLI for managing GPU\u002FCPU workloads from the terminal — pods, serverless endpoints, templates, network volumes, Hub deploys, models, SSH, and file transfer (send\u002Freceive). Use for terminal\u002FCI\u002Fscripting, Hub browse\u002Fdeploy, SSH setup, `doctor`, or when the Runpod MCP tools are not connected. For structured tool calls in an MCP-enabled session, prefer runpod-mcp.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpodctl\u002FSKILL.md",[],[],{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":110,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":19},"01M7ACC63SRHEA5KMCHSMZK2TC","runpod","Start here for any Runpod task — running GPU\u002FCPU pods, deploying serverless endpoints, templates, network volumes, building images, or understanding how Runpod works. Routes to the right skill (runpod-mcp, runpodctl, flash, companion-clis, runpod-usage, runpod-templates, runpod-migrate) and indexes two dozen live-verified end-to-end examples (golden paths) — use it when the lane is unclear, and for any multi-step or provisioning task even when it is not.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod\u002FSKILL.md",[],[],{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":110,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":19},"01M7ACC0Q1C89N9BZBV91CTQTF","runpod-usage","How Runpod works and how to work it — pods vs serverless, GPU\u002FVRAM selection, storage, building a container, networking, plus the agentic pod development loop (provision → ssh-exec → set up → poll readiness) and on-pod install hygiene (uv\u002Fapt). Use to answer \"how does X work\", \"which GPU\", \"how do I build a container\", or \"how do I stand up a workload on a pod\". Guidance, not a tool — execute with runpodctl, runpod-mcp, or flash.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-usage\u002FSKILL.md",[],[],{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":110,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":19},"01M7ACBRPE345GF5GM5B8P8RRC","runpod-templates","Runpod's official prebuilt pod templates (ComfyUI, PyTorch, and others): what each image ships, which ports and paths it uses, how to pick one, how to pin a version, and what is missing on first boot. Use when a task says \"run \u003CX> on a pod\" and an official template already covers it, instead of building an image — and when a user needs help with or wants to fix something about a Runpod template they are already running (won't boot, can't reach the UI, missing models, wrong CUDA line, broken ComfyUI workflow metadata on imported workflows): start here and route onward. Deploy with runpodctl or runpod-mcp; end-to-end walkthroughs live in the runpod router's golden paths.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-templates\u002FSKILL.md",[],[],{"skillNo":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":110,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":19},"01M7ACBJATHKVX1TWES2F44GY8","runpod-migrate","Migrate a codebase from the Runpod GraphQL API or REST v1 to REST v2 — inventory which parts use which API version, rewrite the call sites, flag breaking changes, and verify. Use when someone asks to move to v2, asks what v2 would change, or asks which Runpod API their code is on. For managing infrastructure rather than migrating code, use runpod-mcp or runpodctl.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-migrate\u002FSKILL.md",[],[],{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":110,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":148,"publishedAt":19},"01M7ACBC7GHVH6T9YEAPCG2AP8","runpod-mcp","Manage Runpod infrastructure — pods, serverless endpoints, jobs, templates, network volumes, container-registry auth, GPU\u002FCPU catalog, and billing — via the Runpod MCP server's structured tool calls. Use when the Runpod MCP tools (create-pod, list-endpoints, …) are connected in this session, or to connect them (hosted OAuth or local npx). Prefer this over runpodctl for plain infra CRUD when MCP is available; use runpodctl for the terminal, file transfer, or SSH setup.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-mcp\u002FSKILL.md",[],[]]