Cypress - Plugins and Ecosystem
You want to test a form with multiple buttons labeled 'Save' but with different roles. How can you select the 'Save' button that is a submit button using
cypress-testing-library?cypress-testing-library?findByRole does not support filtering by HTML attributes like type directly.type='submit' to get the correct button.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions