From 22f1744f3c9ef28e6a6911f63a3e6ef0f8affa88 Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Sat, 15 Apr 2023 10:44:11 +0530 Subject: [PATCH] test: formula verification for OR, AND, IF, SEARCH Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- tests/playwright/tests/columnFormula.spec.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/playwright/tests/columnFormula.spec.ts b/tests/playwright/tests/columnFormula.spec.ts index 8fda28aae3..a285e6a9da 100644 --- a/tests/playwright/tests/columnFormula.spec.ts +++ b/tests/playwright/tests/columnFormula.spec.ts @@ -122,6 +122,18 @@ const formulaDataByDbType = (context: NcContext) => [ formula: `NOW()`, result: ['1', '1', '1', '1', '1'], }, + { + formula: `OR(true, false)`, + result: isPg(context) ? ['true', 'true', 'true', 'true', 'true'] : ['1', '1', '1', '1', '1'], + }, + { + formula: `AND(false, false)`, + result: isPg(context) ? ['false', 'false', 'false', 'false', 'false'] : ['0', '0', '0', '0', '0'], + }, + { + formula: `IF((SEARCH({Address List}, "Parkway") != 0), "2.0","WRONG")`, + result: ['WRONG', 'WRONG', 'WRONG', '2.0', '2.0'], + }, ]; test.describe('Virtual Columns', () => {