From 15960e70041030bb85d7797b33bb31d483368e27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Paulo=20Barbosa=20Marques=20dos=20Santos?= Date: Wed, 17 Jul 2024 13:24:56 -0300 Subject: [PATCH] skip test step (#1098) --- .../e2e-js/tests/callfabric/videoRoom.spec.ts | 63 ++++++++++--------- 1 file changed, 32 insertions(+), 31 deletions(-) diff --git a/internal/e2e-js/tests/callfabric/videoRoom.spec.ts b/internal/e2e-js/tests/callfabric/videoRoom.spec.ts index b8751181c..3b04bb263 100644 --- a/internal/e2e-js/tests/callfabric/videoRoom.spec.ts +++ b/internal/e2e-js/tests/callfabric/videoRoom.spec.ts @@ -194,41 +194,42 @@ test.describe('CallFabric VideoRoom', () => { }) // --------------- Room lock/unlock --------------- - await page.evaluate( - // @ts-expect-error - async ({ roomSession }) => { - // @ts-expect-error - const roomObj: Video.RoomSession = window._roomObj - - const roomUpdatedLocked = new Promise((resolve) => { - roomObj.on('room.updated', (params) => { - if ( - params.room_session.locked === true - ) { - resolve(true) - } - }) - }) + // TODO uncomment once the feature is avaliable on PROD + // await page.evaluate( + // // @ts-expect-error + // async ({ roomSession }) => { + // // @ts-expect-error + // const roomObj: Video.RoomSession = window._roomObj + + // const roomUpdatedLocked = new Promise((resolve) => { + // roomObj.on('room.updated', (params) => { + // if ( + // params.room_session.locked === true + // ) { + // resolve(true) + // } + // }) + // }) - const roomUpdatedUnlocked = new Promise((resolve) => { - roomObj.on('room.updated', (params) => { - if ( - params.room_session.locked === false - ) { - resolve(true) - } - }) - }) + // const roomUpdatedUnlocked = new Promise((resolve) => { + // roomObj.on('room.updated', (params) => { + // if ( + // params.room_session.locked === false + // ) { + // resolve(true) + // } + // }) + // }) - await roomObj.lock() - await roomUpdatedLocked + // await roomObj.lock() + // await roomUpdatedLocked - await roomObj.unlock() - await roomUpdatedUnlocked + // await roomObj.unlock() + // await roomUpdatedUnlocked - }, - { roomSession } - ) + // }, + // { roomSession } + // ) // --------------- Set layout --------------- const layoutName = '3x3'