Dante
3ac08fd1da
test(assets-sidebar): add comprehensive E2E tests for Assets browser panel (#10616)
## Summary
- Extend `AssetsSidebarTab` page object with selectors for search, view
mode, asset cards, selection footer, context menu, and folder view
navigation
- Add mock data factories (`createMockJob`, `createMockJobs`,
`createMockImportedFiles`) to `AssetsHelper` for generating realistic
test fixtures
- Write 30 E2E test cases across 10 categories covering the Assets
browser sidebar panel
## Test coverage added
| Category | Tests | Details |
|----------|-------|---------|
| Empty states | 3 | Generated/Imported empty copy, zero cards |
| Tab navigation | 3 | Default tab, switching, search reset on tab
change |
| Grid view display | 2 | Generated card rendering, Imported tab assets
|
| View mode toggle | 2 | Grid↔List switching via settings menu |
| Search | 4 | Input visibility, filtering, clearing, no-match state |
| Selection | 5 | Click select, Ctrl+click multi, footer, deselect all,
tab-switch clear |
| Context menu | 7 | Right-click menu,
Download/Inspect/Delete/CopyJobID/Workflow actions, bulk menu |
| Bulk actions | 3 | Download/Delete buttons, selection count display |
| Pagination | 1 | Large job set initial load |
| Settings menu | 1 | View mode options visibility |
## Context
Part of [FixIt
Burndown](https://www.notion.so/comfy-org/FixIt-Burndown-32e6d73d365080609a81cdc9bc884460)
— "Untested Side Panels: Assets browser" assigned to @dante01yoon.
## Test plan
- [ ] Run `npx playwright test
browser_tests/tests/sidebar/assets.spec.ts` against local ComfyUI
backend
- [ ] Verify all 30 tests pass
- [ ] CI green
┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-10616-test-assets-sidebar-add-comprehensive-E2E-tests-for-Assets-browser-panel-3306d73d365081eeb237e559f56689bf)
by [Unito](https://www.unito.io)
2026-03-30 21:15:14 +09:00
..
2026-03-15 22:46:47 +09:00
2026-03-15 22:46:47 +09:00
2026-03-29 16:02:19 -07:00
2025-12-29 15:03:34 -08:00
2026-03-27 09:11:26 +09:00
2026-03-15 22:46:47 +09:00
2026-03-28 13:08:52 -07:00
2026-03-29 14:45:56 -07:00
2026-03-28 13:08:52 -07:00
2026-03-15 22:46:47 +09:00
2026-03-15 22:46:47 +09:00
2026-03-27 16:04:36 -04:00
2026-03-28 23:19:04 -07:00
2026-03-27 09:11:26 +09:00
2026-03-15 22:46:47 +09:00
2025-12-08 19:48:11 -07:00
2026-03-15 22:46:47 +09:00
2025-12-08 19:48:11 -07:00
2026-03-27 00:19:17 -04:00
2026-01-16 22:11:00 -07:00
2026-03-29 15:57:42 -07:00
2026-03-15 22:46:47 +09:00
2026-03-15 22:46:47 +09:00
2026-03-24 12:25:18 -07:00
2026-03-12 01:10:26 -07:00
2026-03-17 10:46:19 -07:00
2026-03-30 21:15:14 +09:00
2026-03-28 21:06:00 -07:00
2026-03-29 08:27:53 +09:00
2026-03-27 09:11:26 +09:00
2026-03-28 13:08:52 -07:00
2026-03-15 22:46:47 +09:00
2026-02-03 12:29:40 -08:00
2026-03-20 14:18:54 -07:00
2026-03-28 15:02:23 -07:00
2026-02-03 12:29:40 -08:00
2026-03-17 02:24:22 -07:00
2026-02-12 16:27:11 +09:00
2026-03-28 13:08:52 -07:00
2026-03-28 15:02:23 -07:00
2026-02-23 13:33:41 -08:00
2026-03-27 11:54:07 -07:00
2026-03-28 22:34:37 -07:00
2026-03-24 12:25:18 -07:00
2026-02-03 12:29:40 -08:00
2026-02-20 02:20:02 -08:00
2026-03-27 10:08:41 +09:00
2026-03-20 03:24:09 +01:00
2026-02-03 12:29:40 -08:00
2026-03-24 16:12:59 +01:00
2026-03-28 13:08:52 -07:00
2026-03-28 13:08:52 -07:00
2026-03-27 09:11:26 +09:00
2026-03-27 09:11:26 +09:00
2026-02-03 12:29:40 -08:00
2026-02-21 18:43:58 +09:00
2026-03-17 02:24:22 -07:00
2026-03-21 08:03:55 +09:00
2026-03-16 06:51:22 -07:00
2026-03-15 18:47:47 +00:00
2026-03-28 13:08:52 -07:00
2026-03-13 06:13:18 -07:00
2026-03-27 18:15:11 -07:00
2026-03-12 08:44:11 -07:00
2026-03-28 13:08:52 -07:00
2026-03-17 02:24:22 -07:00
2026-03-20 12:24:31 +01:00
2026-02-03 12:29:40 -08:00
2026-03-20 14:18:54 -07:00
2026-02-03 12:29:40 -08:00
2026-03-28 13:08:52 -07:00
2026-02-03 12:29:40 -08:00
2026-03-27 16:04:36 -04:00
2026-02-23 13:33:41 -08:00
2026-03-28 23:19:04 -07:00
2026-03-18 15:31:29 -07:00
2026-02-03 12:29:40 -08:00
2026-03-17 11:14:44 +09:00
2026-02-06 13:42:38 -08:00
2026-03-28 13:08:52 -07:00
2026-03-16 06:51:22 -07:00
2026-03-28 13:08:52 -07:00
2026-02-20 01:10:03 -08:00
2026-03-17 02:24:22 -07:00
2026-02-03 12:29:40 -08:00
2026-03-27 00:19:17 -04:00
2026-03-16 07:21:05 -07:00
2026-03-28 13:54:26 -07:00
2026-03-17 11:14:44 +09:00
2026-02-20 01:10:03 -08:00
2026-03-29 15:45:06 +09:00
2026-02-20 22:06:09 -08:00
2026-03-13 08:43:18 -07:00
2026-03-06 20:02:19 +00:00
2026-03-18 13:02:08 +09:00
2026-03-19 04:12:06 -07:00
2026-03-17 02:24:22 -07:00
2026-02-17 16:17:23 -08:00
2026-03-16 23:37:40 -07:00
2026-02-24 21:23:52 -08:00
2026-03-16 23:37:40 -07:00
2026-02-03 12:29:40 -08:00
2026-02-20 00:37:38 -08:00
2026-03-29 15:45:06 +09:00
2026-03-16 23:37:40 -07:00
2026-01-29 16:34:56 -08:00
2026-02-12 16:27:11 +09:00
2026-02-03 12:29:40 -08:00
2026-02-03 12:29:40 -08:00
2026-03-28 13:08:52 -07:00
2026-03-16 06:51:22 -07:00
2026-03-29 15:57:13 -07:00
2026-03-28 13:08:52 -07:00
2026-03-28 13:08:52 -07:00