test(tests): probe mode entry and exit for shifts at three widths
Criterion 5: « Déplacer le point », « Déplacer la zone », « Valider la position », and « Redessiner » entered then cancelled, each under expectNoShift at 1 024, 1 180 and 1 280 px (seeded point and zone, the existing multi-width pattern). The editor-touch « Déplacer la zone » entry joins the probe; its button is centred first, since below xl the sticky top bar can cover the strip and Playwright would scroll inside the probe. No assertion removed. No product shift found.
This commit is contained in:
1 parent
b6aa2819ea
commit
9522eb72aa
2 files changed
+76
-3
No files matched your search
@@ -373,7 +373,18 @@ for (const width of WIDTHS) {
|
||||
await select(page, ZONE)
|
||||
|
||||
// « Déplacer la zone »: a finger anywhere moves it, « Valider la position » commits.
|
||||
await button(page, 'editor.annotations.move.zone').click()
|
||||
// Its entry moves nothing around the drawing (A14). The button is centred first: below
|
||||
// xl the sticky top bar may cover it, and Playwright would scroll inside the probe.
|
||||
const entry = button(page, 'editor.annotations.move.zone')
|
||||
await entry.evaluate((element) =>
|
||||
element.scrollIntoView({ block: 'center' }),
|
||||
)
|
||||
await expectNoShift(page, async () => {
|
||||
await entry.click()
|
||||
await expect(
|
||||
button(page, 'editor.annotations.move.confirm'),
|
||||
).toBeVisible()
|
||||
})
|
||||
await canvas(page).scrollIntoViewIfNeeded()
|
||||
const empty = await clientOf(page, EMPTY.x, EMPTY.y)
|
||||
await drag(cdp, empty, { x: empty.x + 40, y: empty.y + 40 })
|
||||
|
||||
Reference in new issue
Block a user