mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-05 21:54:50 +00:00
## Summary Add E2E Playwright tests for the asset delete confirmation dialog flow. ## Changes - **What**: New `Assets sidebar - delete confirmation` describe block in `assets.spec.ts` covering right-click delete showing confirmation dialog, confirming delete removes asset with success toast, and cancelling delete preserves asset. Added `mockDeleteHistory()` to `AssetsHelper` to intercept POST `/api/history` delete payloads and update mock state. ## Review Focus Tests use existing `ConfirmDialog` page object and `AssetsHelper` mock infrastructure. The `mockDeleteHistory` handler removes jobs from the in-memory mock array so subsequent `/api/jobs` fetches reflect the deletion. Fixes #10781 ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-10785-test-assets-add-E2E-tests-for-delete-confirmation-flow-3356d73d365081fb90c8e2a69de3a666) by [Unito](https://www.unito.io)