Merge pull request #15580 from BrentBaccala/remove-webcam-race-condition-2.5

test suite: fix race condition on webcam connecting (2.5)
This commit is contained in:
Ramón Souza 2022-08-26 09:33:03 -03:00 committed by GitHub
commit bba30be343
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,9 +87,9 @@ class Page {
await this.waitForSelector(e.videoPreview, videoPreviewTimeout);
await this.waitAndClick(e.startSharingWebcam);
}
await this.waitForSelector(e.webcamConnecting);
await this.waitForSelector(e.webcamContainer, VIDEO_LOADING_WAIT_TIME);
await this.waitForSelector(e.leaveVideo, VIDEO_LOADING_WAIT_TIME);
await this.wasRemoved(e.webcamConnecting);
}
getLocator(selector) {