inst-support-eng / panda-pto

Panda-PTO is a in house solution to HR staffing needs
3 stars 0 forks source link

Price helper refactor #128

Closed merchang closed 5 years ago

merchang commented 5 years ago

Test Plan

Manual Requests

  1. verify Calendar object price is updated correctly when a request is made by the user on main calendar
  2. verify Calendar object price is updated correctly when a request is made for a user from the admin page
  3. verify Calendar object price is updated correctly when a request is made for a user as a no call/no show
  4. verify Calendar object price is updated correctly when a request is made for a user as a make-up day
  5. delete the above 4 requests (in the UI), verify the Calendar object price is updated correctly

    Imported Requests

  6. import a pto_requests csv, verify Calendar object prices are updated correctly. (csv should contain two or more requests for the same day)

    Imported Dates

  7. Upload a calendar csv, this csv should:
    • create a new weekday Calendar item
    • create a new weekend Calendar item
    • update an existing weekday Calendar item's base price
    • update an existing weekend Calendar item's base price
  8. verify the Calendar's current_price value updated correctly in those 4 scenarios