Frontend Testing Strategy

Allocate frontend test effort by the Testing Trophy (static > unit > integration > E2E) and write tests that assert on what the user perceives, using stable selectors, instead of internal implementation. Use whenever writing or reviewing UI tests, deciding what layer to test something at, or diagnosing flaky tests. Trigger on "how should I test this component", "flaky test", "testing implementation details", "what should be an E2E test", "selector broke when I refactored", "test pyramid". Not about test framework setup or CI configuration.

annatchijova Updated 9 repo stars

File contents

annatchijova/skills commit d4244db850

Frequently asked questions

npx get-skill add annatchijova/frontend-testing-strategy