test(editor): lot K review fixes, filled-document save proof
This commit is contained in:
1 parent
bb99edd2dd
commit
4cc27a8231
10 files changed
+132
-32
No files matched your search
@@ -265,18 +265,18 @@ test.describe('editor touch path (real browser)', () => {
|
||||
const box = page.getByTestId('annotation-canvas')
|
||||
const touchAction = () =>
|
||||
box.evaluate((el) => getComputedStyle(el).touchAction)
|
||||
expect(await touchAction()).toBe('pan-x pan-y')
|
||||
await expect.poll(touchAction).toBe('pan-x pan-y')
|
||||
await tool(page, 'point').click()
|
||||
expect(await touchAction()).toBe('none')
|
||||
await expect.poll(touchAction).toBe('none')
|
||||
await tool(page, 'select').click()
|
||||
expect(await touchAction()).toBe('pan-x pan-y')
|
||||
await expect.poll(touchAction).toBe('pan-x pan-y')
|
||||
|
||||
// A movable selection needs the touch itself: the browser reads touch-action at
|
||||
// touchstart, so a drag of the selected marker must not be left to the pan.
|
||||
await list(page)
|
||||
.getByRole('button', { name: /Tactile/ })
|
||||
.click()
|
||||
expect(await touchAction()).toBe('none')
|
||||
await expect.poll(touchAction).toBe('none')
|
||||
const cx = geometryField(page, dict, 'cx')
|
||||
await expect(cx).toHaveValue('500')
|
||||
const from = await clientOf(page, 500, 400)
|
||||
|
||||
Reference in new issue
Block a user