Playwright locators got you down? Same. Here’s my go-to:
1. `getByTestId` with `data-testid` is *chef’s kiss* for stability.
2. If you gotta use text, make it partial with `*=` in CSS selectors.
3. And please, for the love of code, don’t use `xpath` unless you hate yourself.
The Playwright Trace Viewer is also clutch for debugging flaky tests.
1. `getByTestId` with `data-testid` is *chef’s kiss* for stability.
2. If you gotta use text, make it partial with `*=` in CSS selectors.
3. And please, for the love of code, don’t use `xpath` unless you hate yourself.
The Playwright Trace Viewer is also clutch for debugging flaky tests.
