function runQUnitRemotePage
runQUnitRemotePage(
config: Config,
page: Page,
url: string
): Promise<void>

Opens one remote QUnit page and reports what it does, test by test.

Resolves when QUnit says the run ended. Rejects with PageUnrunnable when the page will not load, when nothing on it is QUnit, or when it stops saying anything for config.timeout — a page that hangs halfway is the case a plain waitForEvent would sit through forever.

import type { runQUnitRemotePage } from './remote-page.ts';
import type { Config } from '../types.ts';
import type { Page } from 'playwright-core';

// Defined, not invoked: it drives a real browser page.
async function example(run: typeof runQUnitRemotePage, config: Config, page: Page) {
  await run(config, page, 'https://objectmodel.js.org/test/'); // reports as it goes
}

Parameters

config: Config
page: Page
url: string

Return Type

Promise<void>

Usage

import { runQUnitRemotePage } from "lib/setup/remote-page.ts";