Skip to content

pranab1981/entry-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zipBoard Junior Position Test Project

This is a test repository for the zipBoard junior position application process. This project demonstrates a simple React application with a login form and Cypress testing setup.

Important Note

This repository is for testing purposes only. Please fork this repository to your own account and do not modify this original repository. All your work should be done in your forked version.

Required Technologies

To run this project locally, you need to have the following installed:

  • Node.js (version 18 or higher)
  • npm (comes with Node.js)
  • Git

Getting Started

  1. Fork this repository to your own account
  2. Clone your forked repository:
    git clone <your-forked-repo-url>
  3. Install dependencies:
    npm install
  4. Start the development server:
    npm start
    The application will be available at http://localhost:3000

Testing with Cypress

This project uses Cypress for end-to-end testing. To run the tests:

  1. Make sure the development server is running (npm start)

  2. In a new terminal, you can run Cypress in two ways:

    Open Cypress Test Runner (Interactive Mode)

    npm run cypress:open

    This will open the Cypress Test Runner UI where you can:

    • Choose your preferred browser
    • See all test files
    • Run tests interactively
    • Watch tests run in real-time

    Run Tests in Headless Mode

    npm run cypress:run

    This will run all tests in the terminal without opening the UI.

    Run Tests with Dev Server

    npm run test:e2e

    This command will:

    1. Start the development server
    2. Wait for it to be available
    3. Run all Cypress tests
    4. Shut down the server when done

Project Structure

├── src/
│   ├── components/
│   │   ├── LoginForm.js
│   │   ├── LoginForm.css
│   │   ├── Welcome.js
│   │   └── Welcome.css
│   ├── App.js
│   └── App.css
├── cypress/
│   ├── e2e/
│   │   └── login.cy.js
│   └── support/
│       ├── commands.js
│       └── e2e.js
└── package.json

Available Scripts

  • npm start - Runs the app in development mode
  • npm test - Runs the React testing suite
  • npm run build - Builds the app for production
  • npm run cypress:open - Opens Cypress Test Runner
  • npm run cypress:run - Runs Cypress tests in headless mode
  • npm run test:e2e - Runs Cypress tests with the dev server

License

This project is for testing purposes only and is not licensed for public use.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors