add page type

This commit is contained in:
Lukas Hass 2022-02-18 15:43:06 +01:00
parent cf6204f0db
commit 3d86204db6
No known key found for this signature in database
GPG Key ID: 7C8CEF72C4039178
2 changed files with 5 additions and 3 deletions

View File

@ -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<void> {

View File

@ -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'