Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(tests): increase VB thumbnail aria-checked wait to 5s

damenchodbab3932a825
diff --git a/resources/prosody-plugins/mod_muc_lobby_rooms.lua b/resources/prosody-plugins/mod_muc_lobby_rooms.lua
index f25ed786b4..e917ec22f5 100644
--- a/resources/prosody-plugins/mod_muc_lobby_rooms.lua
+++ b/resources/prosody-plugins/mod_muc_lobby_rooms.lua
@@ -348,9 +348,12 @@ function handle_admin_query_set_command_item(self, origin, stanza, item)
local room_nick = self.jid.."/"..item.attr.nick;
local existing_occupant = self:get_occupant_by_nick(room_nick);
if existing_occupant and existing_occupant.bare_jid ~= item.attr.jid then
- module:log("debug", "Existing occupant for %s: %s does not match %s", room_nick, existing_occupant.bare_jid, item.attr.jid);
- self:set_role(true, room_nick, nil, "This nickname is reserved");
- end
+ module:log("debug", "Existing occupant for %s: %s does not match %s - need to kick", room_nick, existing_occupant.bare_jid, item.attr.jid);
+ success, errtype, err = self:set_role(actor, room_nick, nil, "This nickname is reserved");
+ if not success then
+ origin.send(st.error_reply(stanza, errtype, err));
+ return true;
+ end end
module:log("debug", "Reserving %s for %s (%s)", item.attr.nick, item.attr.jid, item.attr.affiliation);
registration_data = { reserved_nickname = item.attr.nick };
end
diff --git a/tests/pageobjects/VirtualBackgroundDialog.ts b/tests/pageobjects/VirtualBackgroundDialog.ts
index 804c93d397..7e286e133b 100644
--- a/tests/pageobjects/VirtualBackgroundDialog.ts
+++ b/tests/pageobjects/VirtualBackgroundDialog.ts
@@ -40,9 +40,13 @@ export default class VirtualBackgroundDialog extends BaseDialog {
await el.waitForClickable({ timeout: 3000, timeoutMsg: `${label} thumbnail not clickable` });
await el.click();
+
+ // The preview applies the selected effect on every change, which loads the segmentation
+ // model/wasm and saturates the main thread. During rapid switching this can delay the
+ // aria-checked re-render by several seconds, so allow a generous timeout here.
await this.participant.driver.waitUntil(
async () => (await el.getAttribute('aria-checked')) === 'true',
- { timeout: 2000, timeoutMsg: `${label} thumbnail did not become checked after click` }
+ { timeout: 5000, timeoutMsg: `${label} thumbnail did not become checked after click` }
);
}