learn.cypress.io/testing-your-first-application/installing-cypress-and-writing-your-first-test
1 Users
0 Comments
7 Highlights
0 Notes
Tags
Top Highlights
Command chaining is when you “chain” multiple commands off of one another.
we recommend using data attributes on your elements. In this course, we will be using data-test attributes, specifically. This way we have attributes that are used solely for testing purposes.
Notice that within each test, we have to specifically tell Cypress where to navigate to in our application.
We can tell Cypress to only run a specific test by using it.only() l
we can use a Cypress command called eq. This command will allow us to access a specific index within an array of elements, which is exactly what we want.
Remember that arrays start their indexes at 0, so the first element we want is 0 not 1.
You can also pass regular expressions into the contains method. So if you wanted to make a case insensitive comparison using regex, you could u
Glasp is a social web highlighter that people can highlight and organize quotes and thoughts from the web, and access other like-minded people’s learning.