/cypress-test

HR Test Repository

Primary LanguageTypeScript

ACA Cypress Test

Setup

  1. Fork this repository
  2. Install NodeJS
  3. Run npm install in the root folder
  4. Run npm install --global gulp-cli to Install Gulp
  5. Run npm install --global @angular/cli to Install Angular CLI
  6. Run npm install --global cypress to Install Cypress

Development

To run the dev server use the command gulp serve To run cypress along with the dev server use the command gulp test

Task

Test all the functionality of the time picker component on the sample angular component.

Items to test:

  • Change the start time using the clockface
  • Check that the end time updated to keep the duration
  • Change end time using the clockface
  • Check the duration has updated correctly
  • Check that changing the period qualifiers(AM/PM) updates the values approriately
  • Check changing to manual input(keyboard icon)
  • Check changing start time manually
  • Check changing end time manually

Test should perform similar to this