Compare commits

...

1 Commits

Author SHA1 Message Date
a1a4fb9481 Use wiggMove to trigger segment overlay in deletion tests 2025-04-09 18:22:35 -04:00

View File

@ -1336,7 +1336,7 @@ part001 = startSketchOn(XZ)
const isObj = lineOfInterest.includes('{ angle = 3,') const isObj = lineOfInterest.includes('{ angle = 3,')
test(`${lineOfInterest}${isObj ? '-[obj-input]' : ''}${ test(`${lineOfInterest}${isObj ? '-[obj-input]' : ''}${
doesHaveTagOutsideSketch ? '-[tagOutsideSketch]' : '' doesHaveTagOutsideSketch ? '-[tagOutsideSketch]' : ''
}`, async ({ page, editor, homePage }) => { }`, async ({ page, editor, scene, cmdBar, homePage }) => {
await page.addInitScript( await page.addInitScript(
async ({ lineToBeDeleted, extraLine }) => { async ({ lineToBeDeleted, extraLine }) => {
localStorage.setItem( localStorage.setItem(
@ -1359,7 +1359,7 @@ part001 = startSketchOn(XZ)
await page.setBodyDimensions({ width: 1200, height: 500 }) await page.setBodyDimensions({ width: 1200, height: 500 })
await homePage.goToModelingScene() await homePage.goToModelingScene()
await u.waitForPageLoad() await scene.settled(cmdBar)
await page.waitForTimeout(1000) await page.waitForTimeout(1000)
await expect await expect
@ -1401,7 +1401,17 @@ part001 = startSketchOn(XZ)
] ]
await page.mouse.move(hoverPos.x + x, hoverPos.y + y) await page.mouse.move(hoverPos.x + x, hoverPos.y + y)
await page.mouse.move(hoverPos.x, hoverPos.y, { steps: 5 }) await wiggleMove(
page,
hoverPos.x,
hoverPos.y,
20,
Math.sqrt(x * x + y * y),
ang,
10,
5,
`[data-overlay-toolbar-index="0"]`
)
await editor.expectEditor.toContain(lineOfInterest, { await editor.expectEditor.toContain(lineOfInterest, {
shouldNormalise: true, shouldNormalise: true,
@ -1414,7 +1424,17 @@ part001 = startSketchOn(XZ)
await page.getByText('Cancel').click() await page.getByText('Cancel').click()
await page.mouse.move(hoverPos.x + x, hoverPos.y + y) await page.mouse.move(hoverPos.x + x, hoverPos.y + y)
await page.mouse.move(hoverPos.x, hoverPos.y, { steps: 5 }) await wiggleMove(
page,
hoverPos.x,
hoverPos.y,
20,
Math.sqrt(x * x + y * y),
ang,
10,
5,
`[data-overlay-toolbar-index="0"]`
)
await editor.expectEditor.toContain(lineOfInterest, { await editor.expectEditor.toContain(lineOfInterest, {
shouldNormalise: true, shouldNormalise: true,