frontend: Add wait timeout for virtual background application in tests

This commit is contained in:
Carlos Santos 2025-12-10 15:58:15 +01:00
parent 9ff200fa88
commit 34f50d0dee

View File

@ -324,6 +324,7 @@ export const applyVirtualBackground = async (page: Page, backgroundId: string) =
await page.waitForTimeout(500);
await interactWithElementInIframe(page, '#virtual-bg-btn', { action: 'click' });
await waitForElementInIframe(page, 'ov-background-effects-panel', { state: 'visible' });
await page.waitForTimeout(500);
await interactWithElementInIframe(page, `#effect-${backgroundId}`, { action: 'click' });
await page.waitForTimeout(2000); // Allow background processing time
await interactWithElementInIframe(page, '.panel-close-button', { action: 'click' });