fix(anatomy): V1-2.2 marker layer and halo outside the drawing's group
Owner-approved lot B (brief 2026-11-01). The composition root is the engine's (namespaces and frame); the drawing's root becomes a group and the marker layer and halo are its siblings, so no root property reaches a marker. Point hitboxes declare stroke none and visibleFill. Census over the reader's whole allowlist; R3 references compared under the declared transform; click proofs in three engines.
This commit is contained in:
1 parent
f1bb19b30b
commit
4f52f5e1c4
23 files changed
+933
-112
No files matched your search
@@ -3,11 +3,14 @@
|
||||
* the two Chromium projects, the request guard every test runs under, the axe
|
||||
* gate, and the focus and layout probes.
|
||||
*/
|
||||
import { existsSync } from 'node:fs'
|
||||
import AxeBuilder from '@axe-core/playwright'
|
||||
import {
|
||||
devices,
|
||||
expect,
|
||||
firefox,
|
||||
test as base,
|
||||
webkit,
|
||||
type Page,
|
||||
type Project,
|
||||
} from '@playwright/test'
|
||||
@@ -37,6 +40,51 @@ export const PROJECTS: Project[] = [
|
||||
},
|
||||
]
|
||||
|
||||
/**
|
||||
* The canvas click proof (V1-2.2, e2e/ui/canvas-clicks.spec.ts) also runs on Firefox and
|
||||
* WebKit, desktop, and on the WebKit phone, when the pinned engine is installed
|
||||
* (`playwright install firefox webkit`, no sudo, never `--with-deps`). A missing engine is
|
||||
* named in the run's output, never passed silently.
|
||||
*/
|
||||
const CANVAS_CLICKS = /canvas-clicks\.spec\.ts$/
|
||||
|
||||
function installed(name: string, executable: string): boolean {
|
||||
const present = existsSync(executable)
|
||||
if (!present) console.warn(`canvas clicks: ${name} is not installed, its projects do not run`)
|
||||
return present
|
||||
}
|
||||
|
||||
export const CLICK_PROJECTS: Project[] = [
|
||||
...(installed('firefox', firefox.executablePath())
|
||||
? [
|
||||
{
|
||||
name: 'firefox-desktop',
|
||||
testMatch: CANVAS_CLICKS,
|
||||
grepInvert: /@phone/,
|
||||
use: { ...devices['Desktop Firefox'], viewport: { width: 1280, height: 800 } },
|
||||
},
|
||||
]
|
||||
: []),
|
||||
...(installed('webkit', webkit.executablePath())
|
||||
? [
|
||||
{
|
||||
name: 'webkit-desktop',
|
||||
testMatch: CANVAS_CLICKS,
|
||||
grepInvert: /@phone/,
|
||||
use: { ...devices['Desktop Safari'], viewport: { width: 1280, height: 800 } },
|
||||
},
|
||||
{
|
||||
name: 'webkit-375',
|
||||
testMatch: CANVAS_CLICKS,
|
||||
use: {
|
||||
...devices['iPhone SE'],
|
||||
viewport: { width: 375, height: 667 },
|
||||
},
|
||||
},
|
||||
]
|
||||
: []),
|
||||
]
|
||||
|
||||
export interface GuardOptions {
|
||||
/** Origins the page may reach; every other request is aborted and fails the test. */
|
||||
allowedOrigins: string[]
|
||||
|
||||
Reference in new issue
Block a user