Skip to content

feat(skills): add playwright-browser-test skill#122

Merged
aguil merged 1 commit into
masterfrom
feat/playwright-browser-test
Jul 15, 2026
Merged

feat(skills): add playwright-browser-test skill#122
aguil merged 1 commit into
masterfrom
feat/playwright-browser-test

Conversation

@aguil

@aguil aguil commented Jul 14, 2026

Copy link
Copy Markdown
Owner

Summary

Adds dot_agents/skills/playwright-browser-test/SKILL.md: a generic, vendor-agnostic skill for driving a browser with the Playwright CLI to verify UI changes end-to-end.

What it covers

  • No-package.json setup (install @playwright/test to a temp dir)
  • CommonJS unpack pattern for ESM scripts
  • System Chrome via executablePath on macOS
  • Persistent context to reuse login sessions across runs
  • Login-flow detection gotcha — use a sign-in button, not input[type="password"] (hidden autofill fields cause false positives on the email step)
  • File-injection MFA pattern: test polls /tmp/mfa-code.txt; injector writes the code from email/SMS automation
  • OTP segmented inputs: keyboard.type() not fill()
  • data-test-id (OverReact) vs data-testid (RTL/MUI): inspect the DOM first; some apps gate test attributes behind a URL flag

Context

Distilled from a live test session on a Dart/OverReact app.

Test plan

  • Read SKILL.md for accuracy and completeness
  • Verify code snippets are syntactically correct

@aguil
aguil force-pushed the feat/playwright-browser-test branch from cfbdd01 to 16d3559 Compare July 15, 2026 00:00
@aguil
aguil marked this pull request as ready for review July 15, 2026 00:01
@aguil
aguil merged commit 6ac052a into master Jul 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant