Today I Learned

hashrocket A Hashrocket project

Block network requests in browser dev tools

Ever do some sort of testing where you needed to block a specific request from completing in the browser?

Me too...

In chromium dev tools (Chrome, Brave, etc..) you can right-click a request in the network tab. You'll then be presented with an option to block the specific request or block the domain.

Next time that request is made, it will not complete.

Easy-peasy

image

See More #testing TILs