When I intercept URL and stub body:
When I intercept URL {string} and stub body {string} Copy
When I intercept URL {string} and stub body {string}
Intercept HTTP request and stub body with JSON:
When I intercept URL "/api/users/1" and stub body '{"name":"Mark"}' Copy
When I intercept URL "/api/users/1" and stub body '{"name":"Mark"}'
Intercept HTTP request and stub body with text:
When I intercept URL "/page" and stub body "Text" Copy
When I intercept URL "/page" and stub body "Text"
All intercepts are automatically cleared before every test.
When I intercept URL and stub body: