Merge branch 'main' into franknoirot/adhoc/appearance-tweaks-modeling-view
This commit is contained in:
@ -3105,23 +3105,25 @@ test.describe('manual edits during sketch mode', () => {
|
|||||||
await test.step('Edit sketch by dragging handle', async () => {
|
await test.step('Edit sketch by dragging handle', async () => {
|
||||||
await page.waitForTimeout(500)
|
await page.waitForTimeout(500)
|
||||||
await expect
|
await expect
|
||||||
.poll(async () => {
|
.poll(
|
||||||
await editor.expectEditor.toContain('length = 156.54, angle = -28')
|
async () => {
|
||||||
await page.mouse.move(handle1Location.x, handle1Location.y)
|
await editor.expectEditor.toContain('length = 156.54, angle = -28')
|
||||||
await page.mouse.down()
|
await page.mouse.move(handle1Location.x, handle1Location.y)
|
||||||
await page.mouse.move(
|
await page.mouse.down()
|
||||||
handle1Location.x + 50,
|
await page.mouse.move(
|
||||||
handle1Location.y + 50,
|
handle1Location.x + 50,
|
||||||
{
|
handle1Location.y + 50,
|
||||||
steps: 5,
|
{
|
||||||
}
|
steps: 5,
|
||||||
)
|
}
|
||||||
await page.mouse.up()
|
)
|
||||||
await editor.expectEditor.toContain('length = 231.59, angle = -34')
|
await page.mouse.up()
|
||||||
return true
|
await editor.expectEditor.toContain('length = 231.59, angle = -34')
|
||||||
})
|
return true
|
||||||
|
},
|
||||||
|
{ timeout: 10_000 }
|
||||||
|
)
|
||||||
.toBeTruthy()
|
.toBeTruthy()
|
||||||
// await page.waitForTimeout(1000) // Wait for update
|
|
||||||
})
|
})
|
||||||
|
|
||||||
await test.step('Delete variables and wait for re-execution', async () => {
|
await test.step('Delete variables and wait for re-execution', async () => {
|
||||||
@ -3137,16 +3139,19 @@ test.describe('manual edits during sketch mode', () => {
|
|||||||
await editor.expectEditor.toContain('length = 231.59, angle = -34')
|
await editor.expectEditor.toContain('length = 231.59, angle = -34')
|
||||||
await page.waitForTimeout(500)
|
await page.waitForTimeout(500)
|
||||||
await expect
|
await expect
|
||||||
.poll(async () => {
|
.poll(
|
||||||
await page.mouse.move(handle2Location.x, handle2Location.y)
|
async () => {
|
||||||
await page.mouse.down()
|
await page.mouse.move(handle2Location.x, handle2Location.y)
|
||||||
await page.mouse.move(handle2Location.x, handle2Location.y - 50, {
|
await page.mouse.down()
|
||||||
steps: 5,
|
await page.mouse.move(handle2Location.x, handle2Location.y - 50, {
|
||||||
})
|
steps: 5,
|
||||||
await page.mouse.up()
|
})
|
||||||
await editor.expectEditor.toContain('length = 167.36, angle = -14')
|
await page.mouse.up()
|
||||||
return true
|
await editor.expectEditor.toContain('length = 167.36, angle = -14')
|
||||||
})
|
return true
|
||||||
|
},
|
||||||
|
{ timeout: 10_000 }
|
||||||
|
)
|
||||||
.toBeTruthy()
|
.toBeTruthy()
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -3165,17 +3170,20 @@ test.describe('manual edits during sketch mode', () => {
|
|||||||
await test.step('edit sketch again', async () => {
|
await test.step('edit sketch again', async () => {
|
||||||
await page.waitForTimeout(500) // Wait for deferred execution
|
await page.waitForTimeout(500) // Wait for deferred execution
|
||||||
await expect
|
await expect
|
||||||
.poll(async () => {
|
.poll(
|
||||||
await editor.expectEditor.toContain('length = 167.36, angle = -14')
|
async () => {
|
||||||
await page.mouse.move(handle3Location.x, handle3Location.y)
|
await editor.expectEditor.toContain('length = 167.36, angle = -14')
|
||||||
await page.mouse.down()
|
await page.mouse.move(handle3Location.x, handle3Location.y)
|
||||||
await page.mouse.move(handle3Location.x, handle3Location.y + 110, {
|
await page.mouse.down()
|
||||||
steps: 5,
|
await page.mouse.move(handle3Location.x, handle3Location.y + 110, {
|
||||||
})
|
steps: 5,
|
||||||
await page.mouse.up()
|
})
|
||||||
await editor.expectEditor.toContain('length = 219.2, angle = -56')
|
await page.mouse.up()
|
||||||
return true
|
await editor.expectEditor.toContain('length = 219.2, angle = -56')
|
||||||
})
|
return true
|
||||||
|
},
|
||||||
|
{ timeout: 10_000 }
|
||||||
|
)
|
||||||
.toBeTruthy()
|
.toBeTruthy()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user