playwright
Test authoring guidelines
For more details on Playwright best practices see https://playwright.dev/docs/best-practices
Test user-visible behavior
Automated tests should verify that the application code works for the end users, and avoid relying on implementation details such as things which users will not typically use, see, or even know about such as the name of a function, whether something is an array, or the CSS class of some element. The end user will see or interact with what is rendered on the page, so your test should typically only see/interact with the same rendered output.
Make tests as isolated as possible
Each test should be completely isolated from another test and should run independently with its own local storage, session storage, data, cookies etc.
Avoid testing third-party dependencies
Only test what you control. Don't try to test links to external sites or third party servers that you do not control, unless it is specifically for testing purposes.
Use locators
Locators come with auto waiting and retry-ability. To make tests resilient, we recommend prioritizing user-facing attributes and explicit contracts.
More from dtinth/agent-skills
discord
Use this skill to send a message over Discord to the operator
19pdd
Skills for Puzzle Driven Development (PDD). Refer to this skill when a project uses PDD or the operator mentions PDD or puzzle-driven development. Use this skill when: (1) Breaking a large feature into incremental deliverables, (2) Writing @todo stub comments to mark unimplemented code, (3) Picking up an existing @todo puzzle to implement, (4) Deciding whether to wrap up a task with a stub or keep working.
17tmux
Use this skill to run background processes or long running processes using tmux.
14wait-for-ci
Use this skill to wait for checks on GitHub Actions to finish on the current pull request
14packlets
Learn the rules of packlets for managing a JavaScript/TypeScript project. Use this skill whenever a user mentions packlets or when working in a project with packlets (src/packlets) directory.
13playwright-testing
Playwright testing. Use this skill to write and run automated tests for web applications using Playwright.
11