From 2b9cbdf03f23f112a1a68d28d90a35fb30804316 Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Wed, 20 Dec 2023 15:08:47 +0530 Subject: [PATCH] test: added new set of user to test user field --- .../tests/db/columns/columnUserSelect.spec.ts | 27 ++++++++++--------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/tests/playwright/tests/db/columns/columnUserSelect.spec.ts b/tests/playwright/tests/db/columns/columnUserSelect.spec.ts index f0d7beff83..6a0cc5ba84 100644 --- a/tests/playwright/tests/db/columns/columnUserSelect.spec.ts +++ b/tests/playwright/tests/db/columns/columnUserSelect.spec.ts @@ -10,19 +10,16 @@ import { Api } from 'nocodb-sdk'; import { isEE } from '../../../setup/db'; import { getDefaultPwd } from '../../utils/general'; -const users: string[] = [ - 'user@nocodb.com', - 'user-0@nocodb.com', - 'user-1@nocodb.com', - 'user-2@nocodb.com', - 'user-3@nocodb.com', -]; +const users: string[] = isEE() + ? ['useree@nocodb.com', 'useree-0@nocodb.com', 'useree-1@nocodb.com', 'useree-2@nocodb.com', 'useree-3@nocodb.com'] + : ['user@nocodb.com', 'user-0@nocodb.com', 'user-1@nocodb.com', 'user-2@nocodb.com', 'user-3@nocodb.com']; const roleDb = [ - { email: 'user@nocodb.com', role: 'editor' }, - { email: 'user-1@nocodb.com', role: 'editor' }, - { email: 'user-2@nocodb.com', role: 'editor' }, - { email: 'user-3@nocodb.com', role: 'editor' }, + { email: 'useree@nocodb.com', role: 'editor' }, + { email: 'useree-0@nocodb.com', role: 'editor' }, + { email: 'useree-1@nocodb.com', role: 'editor' }, + { email: 'useree-2@nocodb.com', role: 'editor' }, + { email: 'useree-3@nocodb.com', role: 'editor' }, ]; async function beforeEachInit({ page }: { page: any }) { @@ -88,7 +85,9 @@ test.describe('User single select', () => { }); test('Verify the default option count, select default value and verify', async () => { - await grid.column.userOption.verifyDefaultValueOptionCount({ columnTitle: 'User', totalCount: 5 }); + if (!isEE()) { + await grid.column.userOption.verifyDefaultValueOptionCount({ columnTitle: 'User', totalCount: 5 }); + } await grid.column.userOption.selectDefaultValueOption({ columnTitle: 'User', @@ -418,7 +417,9 @@ test.describe('User multiple select', () => { test('Verify the default option count, select default value and verify', async () => { await grid.addNewRow({ index: 0, value: 'Row 0' }); - await grid.column.userOption.verifyDefaultValueOptionCount({ columnTitle: 'User', totalCount: 5 }); + if (!isEE()) { + await grid.column.userOption.verifyDefaultValueOptionCount({ columnTitle: 'User', totalCount: 5 }); + } await grid.column.userOption.selectDefaultValueOption({ columnTitle: 'User',