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