diff --git a/tests/tests/utils/log.ts b/tests/tests/utils/log.ts index bf0a5e69..352c6410 100644 --- a/tests/tests/utils/log.ts +++ b/tests/tests/utils/log.ts @@ -1,4 +1,4 @@ -import { expect } from '@playwright/test'; +import { expect, Page } from '@playwright/test'; const POLLING_INTERVAL = 50; @@ -6,7 +6,7 @@ const POLLING_INTERVAL = 50; * Tries to find a given log message in the logs (for 10 seconds) */ export async function assertLogMessage( - page, + page: Page, substring: string, timeout: number = 10000 ): Promise { diff --git a/tests/tests/utils/roles.ts b/tests/tests/utils/roles.ts index b4e1d4c9..b4d3b8af 100644 --- a/tests/tests/utils/roles.ts +++ b/tests/tests/utils/roles.ts @@ -1,5 +1,7 @@ +import { Page } from '@playwright/test'; + export async function login( - page, + page: Page, userName: string = 'Alice', characterNumber: number = 2, browserLanguage: string | null = 'en-US'