Both cases: show a modal if a student has been waiting too long for a volunteer to join the session
After 15 minutes, a modal saying that we are having trouble matching their session with prompts to exit the modal or end their session
After 45 minutes, a modal saying that we could not match their session with a button to end the session
Steps to test:
Start a session
Wait 15 minutes
2a. Or change the createdAt time on the session in MongoDB to be more than 15 minutes ago but less than 45
2b. Or change fifteenMinsFromSessionStart in SessionHeader.vue to a shorter time to test quicker
A modal should appear saying that there’s trouble getting a volunteer for the session
Cancel the modal
Do steps 2 and 3, but now with a 45 minute wait period
A modal should appear saying that we couldn’t find a volunteer to match the student and the modal will prompt the student to end the session
Developer self-review checklist
[x] Potentially confusing code has been explained with comments
[x] No warnings or errors have been introduced; all known error cases have been handled
[x] Any appropriate documentation (within the code, README.md, docs, etc) has been updated
Links
Description
Both cases: show a modal if a student has been waiting too long for a volunteer to join the session
Steps to test:
createdAt
time on the session in MongoDB to be more than 15 minutes ago but less than 45 2b. Or changefifteenMinsFromSessionStart
inSessionHeader.vue
to a shorter time to test quickerDeveloper self-review checklist