All color dom renderer tests

This commit is contained in:
Daniel Imms
2023-09-08 08:04:36 -07:00
parent ea45b04105
commit a656409bb5
2 changed files with 701 additions and 10 deletions
File diff suppressed because it is too large Load Diff
+2 -1
View File
@@ -374,8 +374,9 @@ export async function openTerminal(ctx: ITestContext, options: ITerminalOptions
}
export type MaybeAsync<T> = Promise<T> | T;
export async function pollFor<T>(page: playwright.Page, evalOrFn: string | (() => Promise<T>), val: T, preFn?: () => Promise<void>, maxDuration?: number, stack?: string): Promise<void> {
export async function pollFor<T>(page: playwright.Page, evalOrFn: string | (() => MaybeAsync<T>), val: T, preFn?: () => Promise<void>, maxDuration?: number, stack?: string): Promise<void> {
stack ??= new Error().stack;
if (preFn) {
await preFn();