Browse Source

test: fix keybord shortcut test

pull/6464/head
DarkPhoenix2704 1 year ago
parent
commit
e5ee7c1d8b
  1. 5
      tests/playwright/tests/db/features/keyboardShortcuts.spec.ts

5
tests/playwright/tests/db/features/keyboardShortcuts.spec.ts

@ -69,6 +69,7 @@ test.describe('Verify shortcuts', () => {
await grid.verifyRowCount({ count: 1 }); await grid.verifyRowCount({ count: 1 });
// create new column // create new column
await page.keyboard.press('Alt+c'); await page.keyboard.press('Alt+c');
await grid.column.fillTitle({ title: 'New Column' }); await grid.column.fillTitle({ title: 'New Column' });
await grid.column.save(); await grid.column.save();
@ -133,8 +134,10 @@ test.describe('Verify shortcuts', () => {
header: 'Algeria', header: 'Algeria',
}); });
await dashboard.expandedForm.fillField({ columnTitle: 'Country', value: 'NewAlgeria' }); 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.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' }); await grid.cell.verify({ index: 1, columnHeader: 'Country', value: 'NewAlgeria' });
}); });
}); });

Loading…
Cancel
Save