// The one small site every `ScrapeDriver` check reads: pages, an iframe'd login whose frame
// carries the SAME ids as its parent (the only shape in which a frame verb aimed at the parent is
// visible), and one JSON endpoint behind them. A subject's driver must serve exactly these — an
// offline driver from recordings of them, a real browser from a server answering them.
import type { Logger } from '@ultimat3/core';
import { frozenClock, structuredLogger } from '@ultimat3/core';
import type { HttpRecording, PageRecording, ScrapeDriver, ScrapeSession } from '@ultimat3/scraping';
export const SCRAPE_CONFORMANCE_HOST = 'shop.test';
const ORIGIN = `https://${SCRAPE_CONFORMANCE_HOST}`;
export const SCRAPE_CONFORMANCE_URLS = {
orders: `${ORIGIN}/orders`,
second: `${ORIGIN}/orders/2`,
login: `${ORIGIN}/login`,
search: `${ORIGIN}/search`,
api: `${ORIGIN}/api/orders?page=1`,
} as const;
const ORDERS = `