Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(cypress): Await promise in response to prevent timeout
The idea is to intercept the request, then test the loading state, and after the tests continue the request. Problem here: `cy.intercept` has a timeout on the request-handler which uses the same timeout as DOM assertions (4s) we could increase it, but this also will increase DOM assertion timeout. So instead we do not await in the request handler, but in the response handler. This should use the response timeout which is much higher (30s). Signed-off-by: Ferdinand Thiessen <[email protected]>
- Loading branch information