We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a47492 commit 0cc50e1Copy full SHA for 0cc50e1
packages/browser/test/e2e/utils/browserHelpers.ts
@@ -1,5 +1,5 @@
1
export function waitForXHR(xhr: { readyState: number }, cb: () => unknown): unknown {
2
- if (xhr.readyState === 4) {
+ if (xhr.readyState === XMLHttpRequest.DONE) {
3
return cb();
4
}
5
0 commit comments