test: fix visibility flake on mac (#26323)

This commit is contained in:
John Kleinschmidt 2020-11-03 16:24:40 -05:00 committed by GitHub
parent bded790425
commit 42aa6b8ea5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,7 +69,7 @@ ifdescribe(process.platform !== 'linux')('document.visibilityState', () => {
// TODO(MarshallOfSound): Figure out if we can work around this 1 tick issue for users // TODO(MarshallOfSound): Figure out if we can work around this 1 tick issue for users
if (process.platform === 'darwin') { if (process.platform === 'darwin') {
// Wait for a tick, the window being "shown" takes 1 tick on macOS // Wait for a tick, the window being "shown" takes 1 tick on macOS
await delay(0); await delay(10000);
} }
w.hide(); w.hide();
load(); load();