https://github.com/humiraalam/cypress-assignment
https://github.com/humiraalam/cypress-assignment
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/humiraalam/cypress-assignment
- Owner: HumiraAlam
- Created: 2024-10-31T09:17:49.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-01T11:24:13.000Z (over 1 year ago)
- Last Synced: 2024-11-01T12:21:13.237Z (over 1 year ago)
- Language: JavaScript
- Size: 5.34 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cypress-assignment: Login Test with three test cases
This project contains automated tests for login functionality on `https://the-internet.herokuapp.com/login` using Cypress.
## Project Structure
- **e2e/**: Contains test cases for three enerios
## positive-login.cy.js,
## negative-login.cy.js, and
## exception-Login.cy.js
## Setup Instructions
1. **Clone the repository**:
```bash
git clone https://github.com/HumiraAlam/cypress-assignment
cd cypress-assignment
```
2. **Install dependencies**:
```bash
npm install
```
3. **Run tests**:
- Open Cypress Test Runner:
```bash
npx cypress open
```
- Run tests in headless mode:
```bash
npx cypress run
```
## Test Cases Document
- **Positive Case**: Valid credentials (`tomsmith` / `SuperSecretPassword!`) log in successfully.
- **Negative Case**: Incorrect credentials prevent login and show an error message.
- **Exception Case**: Empty credentials display an error message indicating invalid input.