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({
|
export default defineConfig({
|
||||||
testDir: './tests/e2e',
|
testDir: './tests/e2e',
|
||||||
timeout: 30000,
|
timeout: 60000,
|
||||||
retries: 0,
|
retries: 0,
|
||||||
workers: 1,
|
workers: 1,
|
||||||
fullyParallel: false,
|
fullyParallel: false,
|
||||||
|
|||||||
@ -78,11 +78,9 @@ export async function interactWithElementInIframe(
|
|||||||
// Perform the specified action
|
// Perform the specified action
|
||||||
switch (action) {
|
switch (action) {
|
||||||
case 'click':
|
case 'click':
|
||||||
await expect(element).toBeVisible({ timeout });
|
|
||||||
await element.click();
|
await element.click();
|
||||||
break;
|
break;
|
||||||
case 'fill':
|
case 'fill':
|
||||||
await expect(element).toBeVisible({ timeout });
|
|
||||||
await element.fill(value);
|
await element.fill(value);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@ -289,7 +287,6 @@ export const applyVirtualBackground = async (page: Page, backgroundId: string) =
|
|||||||
await page.waitForTimeout(2000); // Allow background processing time
|
await page.waitForTimeout(2000); // Allow background processing time
|
||||||
await interactWithElementInIframe(page, '.panel-close-button', { action: 'click' });
|
await interactWithElementInIframe(page, '.panel-close-button', { action: 'click' });
|
||||||
await page.waitForTimeout(1000); // Wait panel to close
|
await page.waitForTimeout(1000); // Wait panel to close
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export const removeVirtualBackground = async (page: Page) => {
|
export const removeVirtualBackground = async (page: Page) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user