Skip to content

Instantly share code, notes, and snippets.

View TheNando's full-sized avatar

Nando Pena TheNando

  • MailGun
  • United States
View GitHub Profile
@TheNando
TheNando / data-test-ids.md
Last active July 25, 2023 19:19
Data Test IDs

A data-testid attribute should be included for every testable element. Testable elements are defined as elements which the user interacts with or which has dynamically changing content.

Usage

  • <MyComp data-testid={...}>

Format

{namespace}.{nav item}.{page component}.[distinguisher]