From c5934eb8a13e932f3a99185a32bf07923d62b144 Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Sat, 27 Jan 2024 10:42:33 +0000 Subject: [PATCH] fix(test): updated LTAR column test --- .../columns/columnLinkToAnotherRecord.spec.ts | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/tests/playwright/tests/db/columns/columnLinkToAnotherRecord.spec.ts b/tests/playwright/tests/db/columns/columnLinkToAnotherRecord.spec.ts index af60dd5a46..03bdb301c2 100644 --- a/tests/playwright/tests/db/columns/columnLinkToAnotherRecord.spec.ts +++ b/tests/playwright/tests/db/columns/columnLinkToAnotherRecord.spec.ts @@ -56,10 +56,16 @@ test.describe('LTAR create & update', () => { }); // Sheet2 now has all 3 column categories : HM, BT, MM - // - // Expanded form insert + // Verify fields and toggle the visibility + await dashboard.grid.toolbar.clickFields(); + for (const title of ['Sheet1', 'Sheet1s']) { + await dashboard.grid.toolbar.fields.verify({ title, checked: false }); + await dashboard.grid.toolbar.fields.click({ title, isLocallySaved: false }); + } + await dashboard.grid.toolbar.clickFields(); + // Expanded form insert await dashboard.grid.footbar.clickAddRecordFromForm(); await dashboard.expandedForm.fillField({ columnTitle: 'Title', @@ -100,6 +106,7 @@ test.describe('LTAR create & update', () => { // Expand record insert await dashboard.grid.addNewRow({ index: 2, value: '2c-temp' }); await dashboard.grid.openExpandedRow({ index: 2 }); + await dashboard.expandedForm.fillField({ columnTitle: 'Sheet1', value: '1c', @@ -149,6 +156,12 @@ test.describe('LTAR create & update', () => { await dashboard.closeTab({ title: 'Sheet2' }); await dashboard.treeView.openTable({ title: 'Sheet1' }); + // Verify fields and toggle the visibility + await dashboard.grid.toolbar.clickFields(); + await dashboard.grid.toolbar.fields.verify({ title: 'Sheet2', checked: false }); + await dashboard.grid.toolbar.fields.click({ title: 'Sheet2', isLocallySaved: false }); + await dashboard.grid.toolbar.clickFields(); + const expected2 = [ [['1 Sheet2'], ['1 Sheet2'], ['1 Sheet2']], [['1 Sheet2'], ['1 Sheet2'], ['1 Sheet2']],