Made personalWolke booking less painful

With cypress you can book your entire month in under few minutes.

actions.spec.js.mp4

preparation

nvm use
npm i

copy your personalWolke user/password to the .env file base on .env.example

you need to add all your desired booking to the ./cypress/fixtures/timecorrection.js

Important

  • don't forget the double array (it is needed because script support multiple time range)
  • absent type will be Home Office always

simple format:

{
  day:6,
  month:5,
  time: [['09:00', '17:30']],
  description:'Area demo, meetings'
}

with multiple timerange

{
  day:7,
  month:5,
  time: [['09:00', '12:00'], ['13:30', '17:30']],
  description:'LIF - personalWolke automation'
}

Booking

nvm use
npm run booking

Debug/more fun

If you wanna see how cypress made your time correction you can run the electron app

nvm use
npm run debug