From 45d8f4f79b8e683360ed7009cc41cc9a01733961 Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Tue, 3 Oct 2023 16:02:03 +0530 Subject: [PATCH] test: add logs to measure setup time Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- tests/playwright/setup/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/playwright/setup/index.ts b/tests/playwright/setup/index.ts index 8a47c3879a..f0982d0e6b 100644 --- a/tests/playwright/setup/index.ts +++ b/tests/playwright/setup/index.ts @@ -350,6 +350,8 @@ const setup = async ({ isSuperUser?: boolean; url?: string; }): Promise => { + console.time('Setup'); + let dbType = process.env.CI ? process.env.E2E_DB_TYPE : process.env.E2E_DEV_DB_TYPE; dbType = dbType || (isEE() ? 'pg' : 'sqlite'); @@ -443,6 +445,9 @@ const setup = async ({ } await page.goto(baseUrl, { waitUntil: 'networkidle' }); + + console.timeEnd('Setup'); + return { base, token,