Testing · Senior · Question 70 of 75

Which approach to test-ids is most maintainable when roles and names aren't enough?

Explanation

Playwright's testIdAttribute and Testing Library's configure({ testIdAttribute }) let you choose the attribute.

Further reading

Problem with a question

Testing · Senior · question 70

Test yourself

Take the Testing · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz