From Dev.to
I Renamed One Button. 5 of 9 Playwright Locators Broke
Every Playwright guide says "use getByRole". I wanted to see what that advice is worth on the day a developer renames a button, so I wrote nine locators for the same "Add to cart" button and ran them...
