Merge branch 'main' into franknoirot/adhoc/appearance-tweaks-modeling-view

This commit is contained in:
Frank Noirot
2025-04-17 15:39:00 -04:00
committed by GitHub

View File

@ -3105,7 +3105,8 @@ test.describe('manual edits during sketch mode', () => {
await test.step('Edit sketch by dragging handle', async () => {
await page.waitForTimeout(500)
await expect
.poll(async () => {
.poll(
async () => {
await editor.expectEditor.toContain('length = 156.54, angle = -28')
await page.mouse.move(handle1Location.x, handle1Location.y)
await page.mouse.down()
@ -3119,9 +3120,10 @@ test.describe('manual edits during sketch mode', () => {
await page.mouse.up()
await editor.expectEditor.toContain('length = 231.59, angle = -34')
return true
})
},
{ timeout: 10_000 }
)
.toBeTruthy()
// await page.waitForTimeout(1000) // Wait for update
})
await test.step('Delete variables and wait for re-execution', async () => {
@ -3137,7 +3139,8 @@ test.describe('manual edits during sketch mode', () => {
await editor.expectEditor.toContain('length = 231.59, angle = -34')
await page.waitForTimeout(500)
await expect
.poll(async () => {
.poll(
async () => {
await page.mouse.move(handle2Location.x, handle2Location.y)
await page.mouse.down()
await page.mouse.move(handle2Location.x, handle2Location.y - 50, {
@ -3146,7 +3149,9 @@ test.describe('manual edits during sketch mode', () => {
await page.mouse.up()
await editor.expectEditor.toContain('length = 167.36, angle = -14')
return true
})
},
{ timeout: 10_000 }
)
.toBeTruthy()
})
@ -3165,7 +3170,8 @@ test.describe('manual edits during sketch mode', () => {
await test.step('edit sketch again', async () => {
await page.waitForTimeout(500) // Wait for deferred execution
await expect
.poll(async () => {
.poll(
async () => {
await editor.expectEditor.toContain('length = 167.36, angle = -14')
await page.mouse.move(handle3Location.x, handle3Location.y)
await page.mouse.down()
@ -3175,7 +3181,9 @@ test.describe('manual edits during sketch mode', () => {
await page.mouse.up()
await editor.expectEditor.toContain('length = 219.2, angle = -56')
return true
})
},
{ timeout: 10_000 }
)
.toBeTruthy()
})