e2e-tests: increase timeout for Playwright tests and remove redundant visibility checks
This commit is contained in:
parent
ea178b3c87
commit
8cd8394ff7
@ -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,
|
||||
|
||||
@ -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) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user