https://cypress.io logo
Why not your after step is still part of your test...
# e2e-testing
m
Why not your after step is still part of your testing run so it would also intercept that. If you don't want that then i would also put an intercept to the same url in the after hook but without the modifications you are doing in the beforeEach
3 Views