Browse Source

test: shared grid view, link count verification

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
ddecdf0bea
  1. 2
      tests/playwright/pages/Dashboard/common/Cell/index.ts
  2. 10
      tests/playwright/tests/db/viewGridShare.spec.ts

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

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

10
tests/playwright/tests/db/viewGridShare.spec.ts

@ -94,7 +94,11 @@ test.describe('Shared view', () => {
// verify virtual records // verify virtual records
for (const record of expectedVirtualRecordsByDb) { for (const record of expectedVirtualRecordsByDb) {
await sharedPage.grid.cell.verifyVirtualCell({ ...record, verifyChildList: true }); await sharedPage.grid.cell.verifyVirtualCell({
...record,
options: { singular: 'Customer', plural: 'Customers' },
verifyChildList: true,
});
} }
/** /**
@ -284,8 +288,8 @@ const expectedVirtualRecords = [
]; ];
const sqliteExpectedVirtualRecords = [ const sqliteExpectedVirtualRecords = [
{ index: 0, columnHeader: 'Customer List', count: 1, value: ['2'] }, { index: 0, columnHeader: 'Customer List', count: 1, type: 'hm' },
{ index: 1, columnHeader: 'Customer List', count: 1, value: ['1'] }, { index: 1, columnHeader: 'Customer List', count: 1, type: 'hm' },
{ index: 0, columnHeader: 'City', count: 1, type: 'bt', value: ['Davao'] }, { index: 0, columnHeader: 'City', count: 1, type: 'bt', value: ['Davao'] },
{ index: 1, columnHeader: 'City', count: 1, type: 'bt', value: ['Nagareyama'] }, { index: 1, columnHeader: 'City', count: 1, type: 'bt', value: ['Nagareyama'] },
]; ];

Loading…
Cancel
Save