From 16ea3005f4e093be8c32e5bd9449a7ce3c7f006c Mon Sep 17 00:00:00 2001 From: David Matejka Date: Tue, 11 Jul 2023 10:58:44 +0200 Subject: [PATCH] tests: fix pw test --- packages/admin/tests/playwright/cases/fileSelection.tsx | 1 - packages/admin/tests/playwright/cases/selectOrCreate.spec.ts | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/admin/tests/playwright/cases/fileSelection.tsx b/packages/admin/tests/playwright/cases/fileSelection.tsx index 28513de15b..65e3f82708 100644 --- a/packages/admin/tests/playwright/cases/fileSelection.tsx +++ b/packages/admin/tests/playwright/cases/fileSelection.tsx @@ -35,7 +35,6 @@ const ImageSelectForm = Component(( thumbnailField="url" onClick={onToggleSelect} />} - tileSize={260} selectedEntityIds={selectedEntityIds} onEntityClick={onToggleSelect} > diff --git a/packages/admin/tests/playwright/cases/selectOrCreate.spec.ts b/packages/admin/tests/playwright/cases/selectOrCreate.spec.ts index 900f89bb61..b10dc4e53e 100644 --- a/packages/admin/tests/playwright/cases/selectOrCreate.spec.ts +++ b/packages/admin/tests/playwright/cases/selectOrCreate.spec.ts @@ -20,6 +20,7 @@ test('select or create', async ({ page }) => { await page.locator('.cui-selectCreateNewWrapper-button > button').click() await page.waitForSelector('input#pw-locale-code') await page.locator('input#pw-locale-code').fill('en') + await page.waitForTimeout(200) expect(await page.screenshot({ animations: 'disabled' })).toMatchSnapshot('02-opened-dialog.png')