agentsclimarketplace

E2e testing

Skill crochee/dotfiles/skills/e2e-testing

Use when writing end-to-end tests with Playwright, setting up Page Object Model, or configuring E2E test CI/CD with artifact management.From its SKILL.md

Install
npx -y skills add crochee/dotfiles --skill e2e-testing

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.7 KB, as published. Nobody here has run it

Playwright E2E Testing

When to Use

  • Setting up Playwright
  • Writing E2E tests with Page Object Model
  • Configuring CI/CD test pipelines
  • Managing test artifacts
  • Fixing flaky tests

Core Workflow

PhaseActions
PlanIdentify critical journeys, define scenarios, prioritize by risk
CreatePOM pattern, data-testid locators, auto-waiting, assertions
ExecuteRun 3-5x locally, quarantine flaky, upload artifacts

Key Principles

  • Semantic locators: [data-testid="..."] > CSS > XPath
  • Wait for conditions: waitForResponse() > waitForTimeout()
  • Auto-wait built in: page.locator().click() waits; page.click() doesn't
  • Test isolation: No shared state between tests
  • Fail fast: expect() at every key step

Flaky Test Handling

// Quarantine
test.fixme(true, 'Flaky - Issue #123')

// Conditional skip in CI
test.skip(process.env.CI, 'Flaky - Issue #123')

// Identify flakiness
npx playwright test --repeat-each=10

Common causes: Race conditions, network timing, animation timing.

Success Metrics

  • Critical journeys: 100% passing
  • Overall pass rate: > 95%
  • Flaky rate: < 5%
  • Duration: < 10 minutes

References

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.