Browse Source

test: lookup/rollup 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
eff83cad36
  1. 1
      tests/playwright/pages/Dashboard/Grid/Column/index.ts
  2. 12
      tests/playwright/tests/db/columnLookupRollup.spec.ts

1
tests/playwright/pages/Dashboard/Grid/Column/index.ts

@ -139,6 +139,7 @@ export class ColumnPageObject extends BasePage {
.locator(`.ant-select-item`, {
hasText: childColumn,
})
.last()
.click();
break;
case 'Rollup':

12
tests/playwright/tests/db/columnLookupRollup.spec.ts

@ -15,7 +15,7 @@ test.describe('Virtual columns', () => {
// close 'Team & Auth' tab
// await dashboard.closeTab({ title: "Team & Auth" });
const pinCode = ['4166', '77459', '41136', '8268', '33463'];
const countryList = ['Spain', 'Saudi Arabia', 'United Arab Emirates', 'Mexico', 'Turkey'];
const cityCount = ['1', '3', '1', '2', '1'];
await dashboard.treeView.openTable({ title: 'City' });
@ -23,14 +23,14 @@ test.describe('Virtual columns', () => {
await dashboard.grid.column.create({
title: 'Lookup',
type: 'Lookup',
childTable: 'Address List',
childColumn: 'PostalCode',
childTable: 'Country',
childColumn: 'Country',
});
for (let i = 0; i < pinCode.length; i++) {
for (let i = 0; i < countryList.length; i++) {
await dashboard.grid.cell.verify({
index: i,
columnHeader: 'Lookup',
value: pinCode[i],
value: countryList[i],
});
}
await dashboard.closeTab({ title: 'City' });
@ -44,7 +44,7 @@ test.describe('Virtual columns', () => {
childColumn: 'CityId',
rollupType: 'count',
});
for (let i = 0; i < pinCode.length; i++) {
for (let i = 0; i < countryList.length; i++) {
await dashboard.grid.cell.verify({
index: i,
columnHeader: 'Rollup',

Loading…
Cancel
Save