more test tweaks

This commit is contained in:
Kurt Hutten Irev-Dev
2025-02-10 13:27:20 +11:00
parent 6a16e47491
commit 6b1cc36911
2 changed files with 12 additions and 3 deletions

View File

@ -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(

View File

@ -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.