[LEBV-290] Handle FINISHED events while waiting for an agent
🎯 Summary
If a FINISHED event is received when a user is waiting for an agent, they will be redirected to the rejection page.
🧪 How to test
Preparation #1
Go to src/app/verification-step/waiting-queue/waiting-queue.component.ts:49 and change this line:
if (status.code === 'FINISHED') {
to
if (status.code !== 'FINISHED') {
Preparation #2
- Set
apiURLconfig insrc/environments/environment.tstohttps://lebara-video-agent-api.yourtestingenv.com. - Use the following agent instance: https://lebara-video-agent-front.yourtestingenv.com/login
- Run the customer part using the following command instead the usual one:
npm run start-ssl - Enter with a mobile device to your local instance using the internal IP. Don't forget enter the IP using
https://instead ofhttp://. - If you receive security warnings, dismiss them.
Actual test
Make an activation process and after some seconds in the waiting que you will be redirected to the rejection page.
🧠 Considerations
Special considerations
🧐 Checklist
- Changes work in Google Chrome
- Changes work in Safari
- UI is responsive