more test tweaks
This commit is contained in:
@ -1465,7 +1465,12 @@ test.describe('multi-profile sketching', () => {
|
||||
)
|
||||
})
|
||||
await test.step('create two corner rectangles in a row without unequip', async () => {
|
||||
await toolbar.rectangleBtn.click()
|
||||
await expect
|
||||
.poll(async () => {
|
||||
await toolbar.rectangleBtn.click()
|
||||
return toolbar.rectangleBtn.getAttribute('aria-pressed')
|
||||
})
|
||||
.toBe('true')
|
||||
|
||||
await crnRect1point1()
|
||||
await editor.expectEditor.toContain(
|
||||
|
@ -231,8 +231,12 @@ test('First escape in tool pops you out of tool, second exits sketch mode', asyn
|
||||
await page.mouse.click(1000, 100)
|
||||
await page.keyboard.press('Escape')
|
||||
await expect(arcButton).toHaveAttribute('aria-pressed', 'false')
|
||||
await page.keyboard.press('l')
|
||||
await expect(lineButton).toHaveAttribute('aria-pressed', 'true')
|
||||
await expect
|
||||
.poll(async () => {
|
||||
await page.keyboard.press('l')
|
||||
return lineButton.getAttribute('aria-pressed')
|
||||
})
|
||||
.toBe('true')
|
||||
|
||||
// Do not close the sketch.
|
||||
// On close it will exit sketch mode.
|
||||
|
Reference in New Issue
Block a user