Skip to content

Commit

Permalink
skip test step (#1098)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsantosbh authored Jul 17, 2024
1 parent d34f336 commit 15960e7
Showing 1 changed file with 32 additions and 31 deletions.
63 changes: 32 additions & 31 deletions internal/e2e-js/tests/callfabric/videoRoom.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 15960e7

Please sign in to comment.