devbridge / test-juggler

E2E test automation framework by Devbridge
MIT License
10 stars 6 forks source link

Create interceptor method to pause request for amount of time #18

Open vaidasmaciulis opened 4 years ago

vaidasmaciulis commented 4 years ago

Would be nice to have interceptor that stops requests for some time and then releases it. Useful to test loading spinners etc.

created by ernestas.zekas@devbridge.com

vaidasmaciulis commented 4 years ago

Should be possible with: https://miragejs.com/docs/main-concepts/route-handlers/

by martynas.luneckas@devbridge.com

vaidasmaciulis commented 4 years ago

Maybe some throttling settings could help. Investigation needed.
https://fdalvi.github.io/blog/2018-02-05-puppeteer-network-throttle/

by ernestas.zekas@devbridge.com