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): wait for interactability before clicking participant more-options button

damencho6a22b9c90805
diff --git a/tests/pageobjects/ParticipantsPane.ts b/tests/pageobjects/ParticipantsPane.ts
index 72a84fcd2e..c2b9db04c4 100644
--- a/tests/pageobjects/ParticipantsPane.ts
+++ b/tests/pageobjects/ParticipantsPane.ts
@@ -203,6 +203,11 @@ export default class ParticipantsPane extends BasePageObject {
await meetingParticipantMoreOptions.waitForDisplayed();
await meetingParticipantMoreOptions.waitForStable();
await meetingParticipantMoreOptions.moveTo();
+
+ // The button is only revealed (moved into view) while its participant row is actually hovered.
+ // waitForDisplayed/waitForStable above do not guarantee that, so wait for real interactability
+ // right before clicking, retrying the hover if a re-render dropped it in the meantime.
+ await meetingParticipantMoreOptions.waitForClickable();
await meetingParticipantMoreOptions.click();
}