test(app): stabilize final interaction coverage

- Isolate the Copy/Paste submenu scenario from prior context-menu state
- Close shared fixture pages safely when a project-level skip bypasses setup
- Refresh the reviewed typography panel snapshot
This commit is contained in:
Danila Poyarkov 2026-07-20 16:34:16 +03:00
parent cff46fbc50
commit 2348b1c972
3 changed files with 5 additions and 3 deletions

View file

@ -229,13 +229,15 @@ test('outline stroke is disabled for fill-only shapes', async () => {
})
test('Copy/Paste as submenu exists', async () => {
await editor.canvas.clearCanvas()
await editor.canvas.drawRect(200, 200, 120, 80)
await editor.canvas.waitForRender()
await rightClickShape(250, 230)
const submenuTrigger = contextItem('context-copy-paste-as')
await expect(submenuTrigger).toBeVisible()
await submenuTrigger.hover()
await editor.page.waitForTimeout(300)
await submenuTrigger.click({ force: true })
await expect(contextItem('context-copy-as-svg')).toBeVisible()
await expect(contextItem('context-copy-as-jsx')).toBeVisible()

View file

@ -16,7 +16,7 @@ export function useEditorSetup(url = '/') {
})
test.afterAll(async () => {
await page.close()
if (page) await page.close()
})
return {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 20 KiB