backport disable self-view test (#20982)
This commit is contained in:
parent
3dd588d704
commit
7a8abd0127
@ -447,6 +447,7 @@ exports.dropAreaLeft = 'div[data-test="dropArea-contentLeft"]';
|
|||||||
exports.dropAreaRight = 'div[data-test="dropArea-contentRight"]';
|
exports.dropAreaRight = 'div[data-test="dropArea-contentRight"]';
|
||||||
exports.dropAreaTop = 'div[data-test="dropArea-contentTop"]';
|
exports.dropAreaTop = 'div[data-test="dropArea-contentTop"]';
|
||||||
exports.dropAreaSidebarBottom = 'div[data-test="dropArea-sidebarContentBottom"]';
|
exports.dropAreaSidebarBottom = 'div[data-test="dropArea-sidebarContentBottom"]';
|
||||||
|
exports.selfViewDisableBtn = 'li[data-test="selfViewDisableBtn"]';
|
||||||
|
|
||||||
exports.videoQualitySelector = 'select[id="setQuality"]';
|
exports.videoQualitySelector = 'select[id="setQuality"]';
|
||||||
exports.webcamItemTalkingUser = 'div[data-test="webcamItemTalkingUser"]';
|
exports.webcamItemTalkingUser = 'div[data-test="webcamItemTalkingUser"]';
|
||||||
|
@ -86,6 +86,23 @@ class Webcam extends Page {
|
|||||||
await expect(height).toBe(windowHeight);
|
await expect(height).toBe(windowHeight);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async disableSelfView() {
|
||||||
|
await this.waitAndClick(e.joinVideo);
|
||||||
|
await this.waitForSelector(e.noneBackgroundButton);
|
||||||
|
|
||||||
|
await uploadBackgroundVideoImage(this);
|
||||||
|
await this.waitAndClick(e.selectCustomBackground);
|
||||||
|
await sleep(1000);
|
||||||
|
await this.waitAndClick(e.startSharingWebcam);
|
||||||
|
await this.waitForSelector(e.webcamContainer);
|
||||||
|
|
||||||
|
await this.waitAndClick(e.dropdownWebcamButton);
|
||||||
|
await this.waitAndClick(e.selfViewDisableBtn);
|
||||||
|
|
||||||
|
const webcamVideoLocator = await this.getLocator(e.webcamConnecting);
|
||||||
|
await expect(webcamVideoLocator).toHaveScreenshot('disable-self-view.png');
|
||||||
|
}
|
||||||
|
|
||||||
async managingNewBackground() {
|
async managingNewBackground() {
|
||||||
await this.waitAndClick(e.joinVideo);
|
await this.waitAndClick(e.joinVideo);
|
||||||
await this.waitForSelector(e.noneBackgroundButton);
|
await this.waitForSelector(e.noneBackgroundButton);
|
||||||
|
@ -42,6 +42,12 @@ test.describe.parallel('Webcam', () => {
|
|||||||
await webcam.webcamFullscreen();
|
await webcam.webcamFullscreen();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('Disable Self-view @ci', async ({ browser, page }) => {
|
||||||
|
const webcam = new Webcam(browser, page);
|
||||||
|
await webcam.init(true, true);
|
||||||
|
await webcam.disableSelfView();
|
||||||
|
});
|
||||||
|
|
||||||
test.describe('Webcam background @ci', () => {
|
test.describe('Webcam background @ci', () => {
|
||||||
/* this test has the flaky tag because it is breaking due to a default video from chrome that
|
/* this test has the flaky tag because it is breaking due to a default video from chrome that
|
||||||
is overlapping the virtual background. */
|
is overlapping the virtual background. */
|
||||||
|
Binary file not shown.
After Width: | Height: | Size: 7.7 KiB |
Loading…
Reference in New Issue
Block a user