In part 1.1, we reviewed the website.cy.ts. It has the test cases for adding, editing and deleting a website. In this part 1.2, we reviewed the login.cy.ts test cases. In this part 1.3, we review the api-website.cy.ts.
I found the following test cases defined in api-website.cy.ts
Creates a website for user.
Creates a website for team.
Creates a website with a fixed ID.
Returns all tracked websites.
Gets a website by ID.
Updates a website.
Updates a website with only shareId.
Resets a website by removing all data related to the website.
Deletes a website.
I would be more interested to learn about fixtures because I saw it some of the test cases and also review the pattern used to make API requests within a test case.
Let’s choose a test case: #1, this demonstrates how a fixture is used.