Browse Source

test: delete row with links, undo

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/5943/head
Raju Udava 1 year ago
parent
commit
1c907fc6e4
  1. 19
      tests/playwright/tests/db/undo-redo.spec.ts

19
tests/playwright/tests/db/undo-redo.spec.ts

@ -589,6 +589,25 @@ test.describe('Undo Redo - LTAR', () => {
await undo({ page, values: ['Mumbai'] }); await undo({ page, values: ['Mumbai'] });
await undo({ page, values: [] }); await undo({ page, values: [] });
}); });
test('Row with links: Delete & Undo', async ({ page }) => {
await dashboard.closeTab({ title: 'Team & Auth' });
await dashboard.treeView.openTable({ title: 'Country' });
await grid.cell.inCellAdd({ index: 0, columnHeader: 'CityList' });
await dashboard.linkRecord.select('Mumbai');
await grid.cell.inCellAdd({ index: 0, columnHeader: 'CityList' });
await dashboard.linkRecord.select('Delhi');
await grid.deleteRow(0, 'Country');
await dashboard.rootPage.waitForTimeout(200);
await page.keyboard.press((await grid.isMacOs()) ? 'Meta+z' : 'Control+z');
await dashboard.rootPage.waitForTimeout(200);
await verifyRecords(['Mumbai', 'Delhi']);
await dashboard.rootPage.reload();
await verifyRecords(['Mumbai', 'Delhi']);
});
}); });
test.describe('Undo Redo - Select based', () => { test.describe('Undo Redo - Select based', () => {

Loading…
Cancel
Save