test(tests): press the drawing where the sticky strip leaves it visible
The strip made sticky in f2809f20 covers the drawing's top band and the
aside's top while the page is scrolled (rev 4 point 1 ruling, accepted
cost). Three presses and one axe scan ran at that scroll after a row
click: back to the top first, and assert the press hits the drawing.
This commit is contained in:
1 parent
05a8525455
commit
de418b29a9
2 files changed
+23
No files matched your search
@@ -26,6 +26,7 @@ import {
|
||||
savedLine,
|
||||
saveDraft,
|
||||
saveLine,
|
||||
scrollToTop,
|
||||
closeSecondSession,
|
||||
secondSession,
|
||||
selectionTag,
|
||||
@@ -255,6 +256,8 @@ async function modifyAnnotations(page: Page) {
|
||||
*/
|
||||
async function repairGeometry(page: Page) {
|
||||
await toolButton(page, dict, 'point').click()
|
||||
// The last row click scrolled the page: the drawing's top edge is under the sticky strip.
|
||||
await scrollToTop(page)
|
||||
// On this 200 x 150 drawing the core keeps a shrunk marker at 1 unit from the edge: the
|
||||
// proposal of a corrected position needs a click on the edge itself (editor-geometry
|
||||
// covers it on a 1 000-unit drawing). Here the click is placed at once.
|
||||
@@ -334,6 +337,8 @@ test.describe('editor journey (owner trial steps)', () => {
|
||||
await historyButton(page, dict, 'undo').click()
|
||||
await historyButton(page, dict, 'redo').click()
|
||||
const modified = await modifyAnnotations(page)
|
||||
// At rest: scrolled, the stuck strip covers part of the aside's targets (axe target-size).
|
||||
await scrollToTop(page)
|
||||
await expectAccessible(page, 'the editor with annotations')
|
||||
await saveDraft(page, dict, 1)
|
||||
const draftId = await sql(
|
||||
|
||||
Reference in new issue
Block a user