3b833798bb
Extracted selector resolution helpers (normalizeCssSelector, parseQuotedValue, materializeSemanticSelector, SelectorPlan) into semantic-subjects.ts. Extracted LLM output formatter (formatAsLLM) into llm-output.ts. Relaxed flaky perf test threshold 10ms->25ms in imhotep-core/perf.test.ts.
imhotep-playwright
Playwright integration layer for Imhotep. Provides page wrapping, CDP-backed geometry extraction, runtime pooling, property-based test runners, renderer adapters, and preset assertion contracts.
Key Exports
| Export | Description |
|---|---|
imhotep(page, opts) |
Attach Imhotep to a Playwright page |
imhotepComponent(id, opts) |
Property-run entry for rendered components |
imhotepStory(url, opts) |
Property-run entry for Storybook stories |
imhotepFixture(path, opts) |
Property-run entry for fixture files |
test, expect, imhotepFixtures |
Playwright test fixtures |
ContextPool, PagePool, Semaphore |
Pooled runtime for multi-worker testing |
touchTarget through modalContainment |
Reusable assertion presets |