From e5ee7c1d8b67c58bddcc25179b8939bfb5fa974e Mon Sep 17 00:00:00 2001 From: DarkPhoenix2704 Date: Mon, 25 Sep 2023 12:21:46 +0530 Subject: [PATCH] test: fix keybord shortcut test --- tests/playwright/tests/db/features/keyboardShortcuts.spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/playwright/tests/db/features/keyboardShortcuts.spec.ts b/tests/playwright/tests/db/features/keyboardShortcuts.spec.ts index eff00c706a..e4d656ace4 100644 --- a/tests/playwright/tests/db/features/keyboardShortcuts.spec.ts +++ b/tests/playwright/tests/db/features/keyboardShortcuts.spec.ts @@ -69,6 +69,7 @@ test.describe('Verify shortcuts', () => { await grid.verifyRowCount({ count: 1 }); // create new column + await page.keyboard.press('Alt+c'); await grid.column.fillTitle({ title: 'New Column' }); await grid.column.save(); @@ -133,8 +134,10 @@ test.describe('Verify shortcuts', () => { header: 'Algeria', }); await dashboard.expandedForm.fillField({ columnTitle: 'Country', value: 'NewAlgeria' }); + await dashboard.expandedForm.save(); + await dashboard.expandedForm.escape(); await page.keyboard.press((await grid.isMacOs()) ? 'Meta+Enter' : 'Control+Enter'); - await page.waitForTimeout(2000); + await page.reload(); await grid.cell.verify({ index: 1, columnHeader: 'Country', value: 'NewAlgeria' }); }); });