/** * Every document a test's browser context held, drained when the test is done * with it. * * A Playwright spec over a probed application destructures `page`, navigates, * clicks, asserts — and names nothing from this package. The crossings are in * the page all the same, and a recorder that drains only through `variance` * writes that spec as having entered nothing: the next `--since` skips it over * the very line it walked. So the drain belongs to the context, which every * browser test already has, and not to a fixture a spec may never ask for. * * Every frame of every page, because the document holding the application is * not always the top one. Storybook's manager runs the story in * `#storybook-preview-iframe` and has no collector of its own; a spec that * opens a second tab has two pages; neither is `page.mainFrame()`. * * A document the test **replaced** — a reload, a second `goto`, a frame the * application removed, a page closed or crashed before the end — took its * undrained crossings with it, and nothing here can drain it afterwards. The * owner is marked incomplete instead: a record that has not seen its own start * is never believed whole, so the next selection runs the spec rather than * skipping it on crossings that were lost. */ import type { Fixtures, PlaywrightTestArgs, PlaywrightWorkerArgs } from '@playwright/test'; import type { RecorderFixture } from './completed.js'; /** * The `context` fixture, wrapped when recording is on. * * An override rather than an automatic fixture of its own: it is set up only * when a test asks for a browser, and it is torn down after every `afterEach` * and every fixture that asked for a page, while the context is still open — * which is the last moment the crossings are readable and the first moment * they are all there. */ export declare const varianceDocumentFixtures: Fixtures; //# sourceMappingURL=documents.d.ts.map