Skip to main content

Function: createTestEngine()

createTestEngine<T>(page, partDefinitions, _option?): TestEngine<T>

Defined in: createTestEngine.ts:17

Create a TestEngine instance backed by Playwright.

Type Parameters​

T​

T extends ScenePart

Parameters​

page​

Page

Playwright page used for interaction.

partDefinitions​

T

Scene part definitions describing the scene structure for the engine.

_option?​

ITestEngineOption

Reserved for entry-point symmetry with the other adapters; currently ignored. rootElement is not applicable to Playwright, which drives a real browser page rather than mounting into a host element.

Returns​

TestEngine<T>

A configured TestEngine ready for use.