Update Dashboard E2E Test

Let's update dashboard E2E tests to add tests for the calendar functionality.

At this point, we’re ready to add our E2E tests to the dashboard.

Creating command file

First, we’ll create another Cypress command for creating events similar to the one we made for creating new users. Let’s create the file for our new command.

touch cypress/support/create-event.js
Terminal 1
Terminal
Loading...

Below is our updated code after running the above command. Use this to make further changes.

{
  "name": "Using fixtures to represent data",
  "email": "hello@cypress.io",
  "body": "Fixtures are a great way to mock data for responses to routes"
}
Update dashboard e2e test

Add command for event creation

Add the following event creation command. Most of ...