Merge pull request #14897 from MaximKhlobystov/2.4-playwright-updates

test: minor updates to the 2.4 test specs
This commit is contained in:
Anton Georgiev 2022-04-28 09:47:38 -04:00 committed by GitHub
commit eea3b2dc22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

View File

@ -12,7 +12,7 @@ class Language extends Page {
const selectedKeysBySelector = {
[e.messageTitle]: 'app.userList.messagesTitle',
[e.notesTitle]: 'app.userList.notesTitle',
[e.userList]: 'app.navBar.userListToggleBtnLabel',
[e.userListToggleBtn]: 'app.navBar.userListToggleBtnLabel',
[e.hidePublicChat]: 'app.chat.titlePublic',
[e.sendButton]: 'app.chat.submitLabel',
[e.actions]: 'app.actionsBar.actionsDropdown.actionsLabel',

View File

@ -9,7 +9,7 @@ test.describe.parallel('Stress', () => {
await stress.moderatorAsPresenter();
});
test('All users must receive breakout room invitations', async ({ browser, context, page }) => {
test.fixme('All users must receive breakout room invitations', async ({ browser, context, page }) => {
const stress = new Stress(browser, context, page);
await stress.breakoutRoomInvitation();
});

View File

@ -20,7 +20,7 @@ class LockViewers extends MultiUsers {
await openLockViewers(this.modPage);
await this.modPage.waitAndClickElement(e.lockShareWebcam);
await this.modPage.waitAndClick(e.applyLockSettings);
await waitAndClearNotification(this.modPage);
// await waitAndClearNotification(this.modPage); // notification check is unstable
const videoContainerLockedCount = await this.userPage2.getSelectorCount(e.webcamVideoItem);
expect(videoContainerLockedCount).toBe(1);
@ -100,13 +100,13 @@ class LockViewers extends MultiUsers {
}
async lockSeeOtherViewersUserList() {
const usersCount = this.userPage.getLocator(e.userListItem);
expect(await usersCount.count()).toBe(2);
expect(await this.userPage.getLocator(e.userListItem).count()).toBe(2);
await openLockViewers(this.modPage);
await this.modPage.waitAndClickElement(e.lockUserList);
await this.modPage.waitAndClick(e.applyLockSettings);
expect(await usersCount.count()).toBe(1);
await sleep(1000);
expect(await this.userPage.getLocator(e.userListItem).count()).toBe(1);
await this.userPage2.hasText(e.userListItem, this.modPage.username);
}

View File

@ -2,7 +2,7 @@ const { test } = require('@playwright/test');
const { VirtualizeList } = require('./virtualize');
test.describe.parallel('Virtualize list', () => {
test('Virtualized Users List', async ({ browser, page }) => {
test.fixme('Virtualized Users List', async ({ browser, page }) => {
test.setTimeout(0);
const virtualizeList = new VirtualizeList(browser, page);
await virtualizeList.init();