Creating a Test Suite

Pragati Sharma: Let's go back to our empty project. Let's see where it has reached. So after adding Cypress as a dependency, you can see it has content added here. Now, like I said, we have to do an npx cypress open and it would create a template-like structure for us. Okay, now let me take you back. Now here, there is a Cypress folder within which we have four different subfolder. So within integration, I create a new file with the name todo.spec.js and here we add the test cases now we will use describe. So why are we doing this? We are actually testing todo application. Okay, so now this becomes the test suite. So now what we're going to do is we are going to add a test case. What we are basically doing is testing the fixture. So I'll add an id and I'll call it as test page load. Right. And within this, we can actually visit that URL that we saw. So we will visit the URL. So we visited this URL, so I'll fetch it for you and I'll put it in my test case.

Comments are closed.

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}