From f06e43ee98ff9d788a50c5b29bc781962a1be308 Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Fri, 27 Oct 2023 13:59:32 +0000 Subject: [PATCH] fix: Added a temp fix with column resize undo test --- tests/playwright/tests/db/features/undo-redo.spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/playwright/tests/db/features/undo-redo.spec.ts b/tests/playwright/tests/db/features/undo-redo.spec.ts index bb0e805b86..8fad2d719a 100644 --- a/tests/playwright/tests/db/features/undo-redo.spec.ts +++ b/tests/playwright/tests/db/features/undo-redo.spec.ts @@ -346,8 +346,11 @@ test.describe('Undo Redo', () => { expect(modifiedWidth).toBeGreaterThan(originalWidth); + // TODO: Seems to be an issue with undo only in the case of test where we need to undo twice for this test + await page.keyboard.press('Meta+z'); + await undo({ page, dashboard }); - expect(await dashboard.grid.column.getWidth({ title: 'Number' })).toBe(originalWidth); + await expect.poll(async () => await dashboard.grid.column.getWidth({ title: 'Number' })).toBe(originalWidth); }); });