feat(editor): two-finger pan, touch hint, loupe, touch-sized handles
useFraming gains twoPointerPan (the editor's pinch also pans by the midpoint and scales from the spread since the pinch began; the catalogue passes nothing). A futile one-finger drag shows the R-1 hint unless two fingers already worked in this editor visit (work store flag). A finger drag of a handle shows the loupe (technique A: the drawing copied once, data-anno-id stripped, outline on top). editor-touch.spec covers 1 024, 1 180 and 1 280 px with CDP touch. measure-drag.ts is the hand-run smoothness measure (MEASURE_DRAG=1). equineShape moved from editor-zones.spec to support/editor.ts, no assertion changed.
This commit is contained in:
1 parent
3a7715486b
commit
85231a2680
18 files changed
+1338
-53
No files matched your search
@@ -0,0 +1,34 @@
|
||||
import { test } from '../support/browser'
|
||||
import { measureDrag } from '../support/measure-drag'
|
||||
import { dropLateReplays, routeToSandbox } from '../support/sandbox'
|
||||
|
||||
// U2 Task 8: the hand-run smoothness measure (support/measure-drag.ts). Skipped unless
|
||||
// MEASURE_DRAG=1: a timing figure, never a suite assertion.
|
||||
|
||||
test.describe('drag smoothness measure (hand-run)', () => {
|
||||
test.use({
|
||||
locale: 'fr-FR',
|
||||
hasTouch: true,
|
||||
viewport: { width: 1180, height: 800 },
|
||||
})
|
||||
test.beforeEach(async ({ context }, info) => {
|
||||
test.skip(process.env.MEASURE_DRAG !== '1', 'run by hand: MEASURE_DRAG=1')
|
||||
test.skip(info.project.name !== 'chromium-desktop', 'one run, at 1 180 px')
|
||||
await routeToSandbox(context)
|
||||
})
|
||||
test.afterEach(async ({ context }) => {
|
||||
await dropLateReplays(context)
|
||||
})
|
||||
|
||||
test('vertex drag on the equine main view, touch with the loupe and mouse', async ({
|
||||
page,
|
||||
context,
|
||||
}, info) => {
|
||||
test.setTimeout(180_000)
|
||||
for (const figures of await measureDrag(page, context)) {
|
||||
const line = JSON.stringify(figures)
|
||||
console.log(`MEASURE ${line}`)
|
||||
info.annotations.push({ type: 'measure', description: line })
|
||||
}
|
||||
})
|
||||
})
|
||||
Reference in new issue
Block a user