- Run the tests in the 2 modes
- Figure out why one of the tests is failing
- Implement login flow (ask for a user/password if not provided)
- In the second test, test whether the machine list in the realtime page loads correctly
- Move the login flow to a Cypress command so that it can be reused in other tests
- (bonus) Do not hard-code user password
qa-challenge/
├── cypress/
│ ├── e2e/
│ │ └── main-test.cy.js # Main test file
│ ├── support/
│ │ └── e2e.js # Support file for global configurations
│ └── fixtures/ # Test data files (if needed)
├── cypress.config.js # Cypress configuration
├── package.json # Project dependencies and scripts
└── README.md # This file
- Node.js (version 20 or higher)
- npm
- Install dependencies:
npm install
npm test
# or
npm run cypress:runnpm run test:open
# or
npm run cypress:open