UNPKG

@umbraco/playwright-testhelpers

Version:

Test helpers for making playwright tests for Umbraco solutions

18 lines (17 loc) 761 B
import { ApiHelpers } from "./ApiHelpers"; import { Page } from "@playwright/test"; export declare class LoginApiHelper { api: ApiHelpers; page: Page; constructor(api: ApiHelpers, page: Page); login(userEmail: string, password: string): Promise<{ cookie: string; accessToken: any; refreshToken: any; }>; getCookie(userEmail: string, password: string): Promise<string>; createCodeChallenge(codeVerifier: string): Promise<string>; getAuthorizationCode(codeChallenge: string, cookie: string, stateValue: string): Promise<string | null>; getRefreshToken(cookie: string, codeVerifier: string, authorizationCode: any): Promise<any>; getAccessToken(cookie: string, refreshToken: string): Promise<any>; }