add page type
This commit is contained in:
parent
cf6204f0db
commit
3d86204db6
@ -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> {
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user