diff --git a/tests/playwright/pages/Dashboard/Grid/Column/index.ts b/tests/playwright/pages/Dashboard/Grid/Column/index.ts index 6db6307869..9145b42719 100644 --- a/tests/playwright/pages/Dashboard/Grid/Column/index.ts +++ b/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': diff --git a/tests/playwright/tests/db/columnLookupRollup.spec.ts b/tests/playwright/tests/db/columnLookupRollup.spec.ts index 236b94d5ed..c1116ca7ca 100644 --- a/tests/playwright/tests/db/columnLookupRollup.spec.ts +++ b/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',