e2e-tests: increase timeout for Playwright tests and remove redundant visibility checks

This commit is contained in:
Carlos Santos 2025-09-24 16:38:52 +02:00
parent ea178b3c87
commit 8cd8394ff7
2 changed files with 1 additions and 4 deletions

View File

@ -3,7 +3,7 @@ import { RUN_MODE } from './tests/config';
export default defineConfig({
testDir: './tests/e2e',
timeout: 30000,
timeout: 60000,
retries: 0,
workers: 1,
fullyParallel: false,

View File

@ -78,11 +78,9 @@ export async function interactWithElementInIframe(
// Perform the specified action
switch (action) {
case 'click':
await expect(element).toBeVisible({ timeout });
await element.click();
break;
case 'fill':
await expect(element).toBeVisible({ timeout });
await element.fill(value);
break;
default:
@ -289,7 +287,6 @@ export const applyVirtualBackground = async (page: Page, backgroundId: string) =
await page.waitForTimeout(2000); // Allow background processing time
await interactWithElementInIframe(page, '.panel-close-button', { action: 'click' });
await page.waitForTimeout(1000); // Wait panel to close
};
export const removeVirtualBackground = async (page: Page) => {