Put in order · Vibe coding with Claude Code course · Module 11: Spotify clone

Queue test steps

Order the steps of a behavior test that checks the Remove button in the queue:

Items to put in order

  • Render the player: render(<MusicPlayer tracks={tracks} />)
  • Check the result: expect(screen.queryByRole(...)).toBeNull()
  • Find the button by role and name: screen.getByRole(...)
  • Click it: fireEvent.click(...)

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