Browse Source

test: metaLtar fix

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/5848/head
Raju Udava 1 year ago committed by Pranav C
parent
commit
8deb43da17
  1. 2
      tests/playwright/pages/Dashboard/common/Cell/index.ts
  2. 32
      tests/playwright/tests/db/metaLTAR.spec.ts

2
tests/playwright/pages/Dashboard/common/Cell/index.ts

@ -275,7 +275,7 @@ export class CellPageObject extends BasePage {
options, options,
}: CellProps & { }: CellProps & {
count?: number; count?: number;
type?: 'hm' | 'bt' | 'mm'; type?: string;
value?: string[]; value?: string[];
verifyChildList?: boolean; verifyChildList?: boolean;
options?: { singular?: string; plural?: string }; options?: { singular?: string; plural?: string };

32
tests/playwright/tests/db/metaLTAR.spec.ts

@ -228,27 +228,25 @@ test.describe.serial('Test table', () => {
// has-many removal verification // has-many removal verification
await dashboard.treeView.openTable({ title: 'Table1' }); await dashboard.treeView.openTable({ title: 'Table1' });
await dashboard.grid.cell.verifyVirtualCell({ index: 0, columnHeader: 'Table0', count: 0, value: [] }); await dashboard.grid.cell.verifyVirtualCell({ index: 0, columnHeader: 'Table0', count: 0, value: [], type: 'bt' });
await dashboard.grid.cell.verifyVirtualCell({ index: 1, columnHeader: 'Table0', count: 0, value: [] }); await dashboard.grid.cell.verifyVirtualCell({ index: 1, columnHeader: 'Table0', count: 0, value: [], type: 'bt' });
await dashboard.grid.cell.verifyVirtualCell({ index: 2, columnHeader: 'Table0', count: 0, value: [] }); await dashboard.grid.cell.verifyVirtualCell({ index: 2, columnHeader: 'Table0', count: 0, value: [], type: 'bt' });
// many-many removal verification // many-many removal verification
await dashboard.treeView.openTable({ title: 'Table3' }); await dashboard.treeView.openTable({ title: 'Table3' });
await dashboard.grid.cell.verifyVirtualCell({ index: 0, columnHeader: 'Table0 List', count: 0, value: [] }); const params = {
await dashboard.grid.cell.verifyVirtualCell({ index: 1, columnHeader: 'Table0 List', count: 1, value: ['2'] }); index: 0,
await dashboard.grid.cell.verifyVirtualCell({ index: 2, columnHeader: 'Table0 List', count: 2, value: ['2', '3'] });
await dashboard.grid.cell.verifyVirtualCell({
index: 3,
columnHeader: 'Table0 List', columnHeader: 'Table0 List',
count: 3, count: 0,
value: ['2', '3', '4'], value: [],
}); type: 'hm',
await dashboard.grid.cell.verifyVirtualCell({ options: { singular: 'Table0', plural: 'Table0s' },
index: 4, };
columnHeader: 'Table0 List', await dashboard.grid.cell.verifyVirtualCell({ ...params });
count: 4, await dashboard.grid.cell.verifyVirtualCell({ ...params, count: 1, index: 1, value: ['2'] });
value: ['2', '3', '4', '5'], await dashboard.grid.cell.verifyVirtualCell({ ...params, count: 2, index: 2, value: ['2', '3'] });
}); await dashboard.grid.cell.verifyVirtualCell({ ...params, count: 3, index: 3, value: ['2', '3', '4'] });
await dashboard.grid.cell.verifyVirtualCell({ ...params, count: 4, index: 4, value: ['2', '3', '4', '5'] });
}); });
test('Delete record - bulk, over UI', async () => { test('Delete record - bulk, over UI', async () => {

Loading…
Cancel
Save