Welcome to the documentation for the cypress-automation-test
repository. This documentation provides information on how to install, project structure, test cases, and how to run the test. cypress-automation-test
built with JavaScript (JS) that follows the Page Object Model (POM) design pattern to implement the UI tests for Autobahn SignUp Test.
Before running the tests, make sure you have the following installed:
-
Clone this repository
-
Navigate to the project directory:
$ cd cypress-autoamtion-test
- Install the dependencies:
$ npm install
The project structure of cypress-automation-test
is as follows:
cypress-automation-test/
│
├── cypress/
│ ├── e2e/
│ │ ├── test.spec.js
│ │ └── ...
│ ├── fixtures/
│ │ └── example.json
│ ├── pages/
│ │ ├── pageobject.js
│ │ └── ...
│ ├── support/
│ └── commands.js
│ └── e2e.js
│
├── cypress.config.json
├── package-lock.json
├── package.json
└── README.md
Test cases covering positive and negative test scenario to ensure the Autobahn Sign Up
functionality. Below are some of the test cases included:
-
Signs up using a temporary email
- Verify that users can sign up with valid email and password.
- Verify that user can input their details information
- Verify that the "Sign Up" button is clickable after all mandatory field inputed
-
Sign up with empty email
- Verify that users can not sign up with empty email.
- Verify error message on the email field.
-
Sign up with empty password
- Verify that users can not sign up with empty password.
- Verify error message on the password field.
-
Sign up with invalid email format
- Verify that users can not sign up with invalid email format.
- Verify error message on the email field.
- Verify that the "Sign Up" button is disabled
-
Sign up with invalid password format
- Verify that users can not sign up with invalid password format.
- Verify error message on the password field.
- Verify that the "Sign Up" button is disabled
-
Sign up with empty data user and invalid phone number
- Verify that users should input value for mandatory field.
- Verify that users should input valid phone number.
- Verify error message on each field.
- Verify that the "Sign Up" button is disabled when data provided still not valid.
To run the Cypress tests, use the following command
- To run the tests using Cypress GUI:
$ npx cypress open
- To run the tests on your terminal:
$ npx cypress run