From 80702eac01416b74070aa71b8f859cd9a5e180e4 Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Mon, 22 May 2023 16:29:15 +0530 Subject: [PATCH] test: formula case insensitive Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- tests/playwright/tests/db/columnFormula.spec.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/playwright/tests/db/columnFormula.spec.ts b/tests/playwright/tests/db/columnFormula.spec.ts index 4aabefe37e..18ddb182af 100644 --- a/tests/playwright/tests/db/columnFormula.spec.ts +++ b/tests/playwright/tests/db/columnFormula.spec.ts @@ -134,6 +134,20 @@ const formulaDataByDbType = (context: NcContext) => [ formula: `IF((SEARCH({Address List}, "Parkway") != 0), "2.0","WRONG")`, result: ['WRONG', 'WRONG', 'WRONG', '2.0', '2.0'], }, + + // additional tests for formula case-insensitivity + { + formula: `weekday("2022-07-19")`, + result: ['1', '1', '1', '1', '1'], + }, + { + formula: `Weekday("2022-07-19")`, + result: ['1', '1', '1', '1', '1'], + }, + { + formula: `WeekDay("2022-07-19")`, + result: ['1', '1', '1', '1', '1'], + }, ]; test.describe('Virtual Columns', () => {