From the course: Advanced Cypress

Unlock this course with a free trial

Join today to access over 23,200 courses taught by industry experts.

What are Cypress mouse commands?

What are Cypress mouse commands? - Cypress Tutorial

From the course: Advanced Cypress

What are Cypress mouse commands?

In this video, we're going to talk about using some different mouse events in Cypress. So the goals for this video are to use the Cypress mouse commands and explore passing in some different options. And then also, there might be instances in which you want to create a hover effect. So maybe you have some sort of action that triggers on hover. There's actually not a specific hover action by default or a hover command by default out of the box with Cypress. So we'll go ahead and take a look at a workaround for that. So let's go ahead and get started. So as we've been doing in these videos we've got our project running locally and we've got our test runner command entered here, and we've got our little test runner UI ready to go. So let's go ahead and write some tests. So we're going to exclusively use the actions/commands page for this. So we can actually utilize this before each like we've looked at before. So we're not going to be worried about fixtures in this particular video. So…

Contents