Click in order · Vue.js course · Module 12: Testing & Deploy
Simulating a click in a test
Arrange the code that simulates a button click in a test:
Items to click
- .trigger(
- await
- wrapper.find('button')
- 'click')
You can check the correct answer by solving this task in the CodeWorlds game.