From 639d8b21040a4017c62ad2f543a53e9fa51bd8eb Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Fri, 31 Mar 2023 18:12:56 +0530 Subject: [PATCH] test: mega table formula fix Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- tests/playwright/tests/megaTable.spec.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/playwright/tests/megaTable.spec.ts b/tests/playwright/tests/megaTable.spec.ts index 456b16c36f..b51af51c97 100644 --- a/tests/playwright/tests/megaTable.spec.ts +++ b/tests/playwright/tests/megaTable.spec.ts @@ -16,7 +16,6 @@ const megaTblColumns = [ { type: 'Checkbox', count: 3 }, { type: 'SingleSelect', count: 3 }, { type: 'MultiSelect', count: 3 }, - { type: 'Formula', count: 0 }, ]; const megaTblRows = 50000; const bulkInsertAfterRows = 1000; @@ -25,7 +24,7 @@ test.describe.serial('Test table', () => { let context: any; test.beforeEach(async ({ page }) => { - context = await setup({ page, isEmptyProject: true }); + context = await setup({ page }); api = new Api({ baseURL: `http://localhost:8080/`, @@ -63,8 +62,6 @@ test.describe.serial('Test table', () => { }; if (megaTblColumns[i].type === 'SingleSelect' || megaTblColumns[i].type === 'MultiSelect') { column['dtxp'] = "'jan','feb','mar','apr','may','jun','jul','aug','sep','oct','nov','dec'"; - } else if (megaTblColumns[i].type === 'Formula') { - column['formula_raw'] = '{Id}'; } table_1_columns.push(column); } @@ -78,6 +75,13 @@ test.describe.serial('Test table', () => { columns: table_1_columns, }); + table_1 = await api.dbTableColumn.create(table_1.id, { + column_name: 'Formula', + title: 'Formula', + uidt: UITypes.Formula, + formula_raw: '{SingleLineText}', + }); + const table_1_rows = []; for (let rowCnt = 0; rowCnt < megaTblRows; rowCnt++) { const row = {