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

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