Order total and price not correctly updated after quantity entered
Summary
There's a race condition occurring in purchase pages (e.g. CI minutes and storage), the problem is happening mostly on our e2e tests but it could happen to our users.
Proposal
In purchase pages, debounce HTTP requests that are triggered by user input (e.g. change seats count).
Introducing the debounce might increase our bundle size a bit (or a few bytes) but it will prevent the race condition from happening, which help with:
- Our tests will fail less often
- Our users won't encounter strange UX behavior in the total price changing unexpectedly
Note: since the problem is happening on multiple pages, we want to implement a holistic solution for all pages.
Details
Here's an example of order total and price not correctly updated after quantity entered:
Steps to reproduce
Seems to be intermittently failure in pipeline. More investigation needed.
Reported examples
Edited by Ammar Alakkad