Wait until at least one matching request has received a response.
mock.waitForResponse({ timeout, interval, timeoutMsg })
optionsWaitForOptionsoptions.timeoutNumberbrowser.options.waitforTimeout)options.intervalNumberbrowser.options.waitforInterval)options.timeoutMsgStringit('should wait for a matching response', async () => {
const mock = await browser.mock('*' + '/users/list')
// trigger action that issues the request
await $('#load').click()
await mock.waitForResponse({ timeout: 5000 })
expect(mock.calls.length).toBeGreaterThan(0)
})