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; 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) * Tries to find a given log message in the logs (for 10 seconds)
*/ */
export async function assertLogMessage( export async function assertLogMessage(
page, page: Page,
substring: string, substring: string,
timeout: number = 10000 timeout: number = 10000
): Promise<void> { ): Promise<void> {

View File

@ -1,5 +1,7 @@
import { Page } from '@playwright/test';
export async function login( export async function login(
page, page: Page,
userName: string = 'Alice', userName: string = 'Alice',
characterNumber: number = 2, characterNumber: number = 2,
browserLanguage: string | null = 'en-US' browserLanguage: string | null = 'en-US'