oss-slu / shelter_volunteers

MIT License
3 stars 4 forks source link

Change UI testing to use mocking instead of making API and system calls #104

Open cbiddle3 opened 7 months ago

cbiddle3 commented 7 months ago

Describe the solution you'd like UI testing currently makes API calls to GetHelp and uses real-system time. These should be mocked instead to avoid tests breaking.

Describe alternatives you've considered

cbiddle3 commented 6 months ago

Attempted to resolve this issue. No matter what I did (I tried every single available solution), could not get "Reference Error: TextEncoder is not defined" to go away, therefore I couldn't run anything involving the server. I was trying to set this up for Shifts.js class (to mock the server calls).