Testing Existing User test-case and Login Page test-cases with Cypress (Urdu/Hindi)

This post’s video is no longer on YouTube. The notes below are the post.

Course: Full Automation Testing of Web and Mobile App using Cypress and Vitest - NewsPaper Web and Mobile App Automation Testing Course

In this video, we focus on writing test cases for the Register page and Login page using Cypress.

Key Topics Covered:

Register Page Test Case: Existing User Detail Test

We start by creating a test case to ensure that if a user enters existing user details, they:

Should not be able to sign up

Should see an appropriate error message

Intercepting APIs with Cypress Intercept Method

  • We demonstrate how to use the Cypress Intercept Method to handle API requests and responses for our tests.

Writing Test Cases for Login Page

Valid Login Details:

Ensure users can log in with correct details

Verify successful login flow

Invalid Login Details:

Ensure users cannot log in with incorrect details

Verify appropriate error messages are displayed

Empty Fields:

  • Test that correct error messages are shown when the user clicks the submit button without providing any details

In this course, you'll learn to write full app automation test cases for End-to-End Testing, Component Testing, and Unit Testing.

Want us to build yours instead?

On a project, every milestone ends with a link to the working build, and the code, the accounts and every password are yours at the handover.

What we’d build for you is on Services.

Send us the brief, or start with the free call.

Page updated .

Privacy preferences

Choose whether this browser sends visit data to our analytics tools. The site works the same either way.

Google Analytics, Amplitude and Microsoft Clarity show us which pages get read. Off means none of the three loads.

Always on

Sentry error reports, with personal data removed, and the Cloudflare spam check on the brief form.

Each cookie is listed in our Cookie Policy.