From the course: Advanced Cypress
Unlock this course with a free trial
Join today to access over 23,200 courses taught by industry experts.
How to install Cypress plugin and set environment variables - Cypress Tutorial
From the course: Advanced Cypress
How to install Cypress plugin and set environment variables
All right. So in this video, we're going to take a look at the Cypress plugin ecosystem as well as take a look at the cypress.json file, which will allow us to do a little bit more customization. But specifically, it'll help us with setting things like environment variables, which will help with some reusability and customization. So the goals for this video are: To use your first Cypress plugin, we're going to be using a plugin called Cypress Testing Library. And by doing that, we'll help you understand the benefits of leveraging React Testing Library's commands. So what Cypress Testing Library does is it allows us to use the commands like find all and find by that React Testing Library offers. And so it'll help to, kind of, like, augment the get and find commands that we learned about in the previous video. And then additionally, we'll utilize the cypress.json file to create an environment variable specifically here. But it'll be, kind of, our first taste, our first look at that…
Contents
-
-
-
(Locked)
GET and FIND command hacks20m 5s
-
(Locked)
How to install Cypress plugin and set environment variables17m 52s
-
(Locked)
How to handle Cypress async commands12m 10s
-
How to handle non-Cypress async promises11m
-
(Locked)
How to use assertions in Cypress9m 45s
-
(Locked)
How to write tests with Cypress UI commands15m 41s
-
(Locked)
What are Cypress hooks?11m 54s
-
(Locked)
What are Cypress fixtures?16m 56s
-
(Locked)
What are Cypress custom commands?16m 53s
-
(Locked)
What are Cypress mouse commands?14m 13s
-
(Locked)
What are Cypress actions?10m 14s
-
(Locked)
Perform cross-browser testing on Cloud14m 25s
-
(Locked)