Browse Source

test: add logs to measure setup time

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/6557/head
Raju Udava 1 year ago
parent
commit
45d8f4f79b
  1. 5
      tests/playwright/setup/index.ts

5
tests/playwright/setup/index.ts

@ -350,6 +350,8 @@ const setup = async ({
isSuperUser?: boolean; isSuperUser?: boolean;
url?: string; url?: string;
}): Promise<NcContext> => { }): Promise<NcContext> => {
console.time('Setup');
let dbType = process.env.CI ? process.env.E2E_DB_TYPE : process.env.E2E_DEV_DB_TYPE; let dbType = process.env.CI ? process.env.E2E_DB_TYPE : process.env.E2E_DEV_DB_TYPE;
dbType = dbType || (isEE() ? 'pg' : 'sqlite'); dbType = dbType || (isEE() ? 'pg' : 'sqlite');
@ -443,6 +445,9 @@ const setup = async ({
} }
await page.goto(baseUrl, { waitUntil: 'networkidle' }); await page.goto(baseUrl, { waitUntil: 'networkidle' });
console.timeEnd('Setup');
return { return {
base, base,
token, token,

Loading…
Cancel
Save