Add @playwright/test support

This commit is contained in:
Daniel Imms
2023-08-27 08:08:52 -07:00
parent 2b7b4d6fea
commit fbebabe2e6
24 changed files with 585 additions and 30 deletions
+2 -2
View File
@@ -3,10 +3,10 @@
* @license MIT
*/
import * as playwright from 'playwright';
import * as playwright from '@playwright/test';
import deepEqual = require('deep-equal');
import { ITerminalInitOnlyOptions, ITerminalOptions } from 'xterm';
import { deepStrictEqual, fail } from 'assert';
import { deepStrictEqual } from 'assert';
export async function pollFor<T>(page: playwright.Page, evalOrFn: string | (() => Promise<T>), val: T, preFn?: () => Promise<void>, maxDuration?: number): Promise<void> {
if (preFn) {