Skip to content

test(e2e): search filter and collection Shotcut export coverage#64

Open
inur93 wants to merge 1 commit into
masterfrom
worktree-feat+e2e-search-collections
Open

test(e2e): search filter and collection Shotcut export coverage#64
inur93 wants to merge 1 commit into
masterfrom
worktree-feat+e2e-search-collections

Conversation

@inur93

@inur93 inur93 commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds two new E2E test specs covering the flows that had no coverage
  • Extends ItemsPage page object with collection-mode overlay helpers
  • Fixes a broken expectItemCount assertion in CollectionDetailPage

search.spec.ts — filter bar on the items page:

  • Filter by Videos type, verify badge appears, clear filter
  • Type partial search terms and verify the suggestion dropdown updates; Escape closes without applying

collection-export.spec.ts — full collection-to-Shotcut flow:

  • Create a collection, confirm it starts empty
  • Enter collection mode → /items, add first item via the + button
  • Verify overlay badge shows 1 item, navigate back via Manage link
  • Confirm item count on the detail page, then click Export to Shotcut
  • Assert a .zip file download is triggered
  • Cleanup: delete the collection (with finally guard)

Page object changes:

  • ItemsPage: added addToCollectionButton, exitCollectionModeButton, collectionManageLink locators and corresponding action/assertion methods
  • CollectionDetailPage: expectItemCount(n) now matches the actual UI text ("1 item" / "N items") instead of the non-existent "N items in collection"

Test plan

  • Run npm run test:e2e against a running app and confirm all new tests pass
  • Confirm existing tests (items.spec.ts, collections.spec.ts) still pass

🤖 Generated with Claude Code

- search.spec.ts: test Videos/Images filter suggestions and filter apply/clear
- collection-export.spec.ts: full flow — create collection, add item via
  collection mode, verify count, export to Shotcut zip download
- ItemsPage: add overlay locators and methods for collection mode interactions
- CollectionDetailPage: fix expectItemCount to match actual UI text

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant