issues
search
masakudamatsu
/
line-height-picker
A front-end web app that helps web designers/developers pick the best line-height value for their websites
https://line-height-picker.vercel.app
MIT License
2
stars
1
forks
source link
Use data-testid to select buttons in e2e test
#211
Closed
masakudamatsu
closed
4 years ago
masakudamatsu
commented
4 years ago
Problem
Adding background information paragraphs (#199) has made the word used for button labels not unique on the page.
As a result,
getByText(/demo/i)
, for example, returns an error in Cypress.
Solution
Use data-testid to select the buttons in all the e2e tests.
Problem
getByText(/demo/i)
, for example, returns an error in Cypress.Solution