The mock request just hangs forever if I tried to mock a failed response. If mock doesn't provide a way to mimic error response. Any alternative?
sampleMock = browser.mock('**/create',{
method: 'post'
})
sampleMock.respond(null, {
// 0, 422 will cause request hanging. 404 works. So odd~
statusCode: 422
});
Environment (please complete the following information):
wdio 6 chrome 86