Automated script to fill missing hours in Hilanet hours reporting system by Cypress.io tool.
- Node js 14+
- npm 8+
-
Clone this repo to your local machine
-
Use
npm i
to install project deps -
Create local secrets file that called
.env
in the root location for your personal credentials -
Inside
.env
insert the env vars below:USER_ID={{YOUR USER ID}} PASSWORD={{YOUR PASSWORD}}
-
In your terminal use
npm run fill-me-baby
to fill your missing hours.You can also use
npm run fill-me-baby:open
to see the automated script running in the browser by Cypress runner tool.
Note:: The defaults hours are 9:00 - 18:00, to change this value edit the startHour
and endHour
inside cypress.json
configuration file in the root location
or by adding config flags to the npm script -> npm run fill-me-baby --env startHour=1030 --env endHour=1915