diff --git a/test/end-to-end-tests/src/usecases/room-settings.js b/test/end-to-end-tests/src/usecases/room-settings.js index 6bd6fd9640..83d6fd79a8 100644 --- a/test/end-to-end-tests/src/usecases/room-settings.js +++ b/test/end-to-end-tests/src/usecases/room-settings.js @@ -162,7 +162,7 @@ async function changeRoomSettings(session, settings) { session.log.step(`sets visibility to ${settings.visibility}`); const radios = await session.queryAll(".mx_RoomSettingsDialog label"); assert.equal(radios.length, 7); - const [inviteOnlyRoom, _, publicRoom] = radios; + const [inviteOnlyRoom,, publicRoom] = radios; if (settings.visibility === "invite_only") { await inviteOnlyRoom.click();