Put in order · JavaScript and React course · Module 13: Testing React

screen.getByRole syntax with options

Arrange the elements of the screen.getByRole query with a name option in the correct order:

Items to put in order

  • screen.getByRole(
  • /submit/i })
  • 'button'
  • , { name:

You can check the correct answer by solving this task in the CodeWorlds game.