Skip to content

More E2E tests#956

Open
martpie wants to merge 1 commit intomasterfrom
playlists-e2e-tests
Open

More E2E tests#956
martpie wants to merge 1 commit intomasterfrom
playlists-e2e-tests

Conversation

@martpie
Copy link
Copy Markdown
Owner

@martpie martpie commented Mar 23, 2026

No description provided.

Copilot AI review requested due to automatic review settings March 23, 2026 22:36
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds additional browser E2E coverage around playlist creation/renaming/grouping, and introduces stable data-testid hooks + richer database mocking to support those flows.

Changes:

  • Added a new Playlists E2E test and refactored common navigation/scan steps into shared helpers.
  • Added data-testid attributes to key UI elements used by E2E tests (playlist CTA/new button, rename input, sidenav letter headers).
  • Enhanced the database bridge mock to support basic playlist CRUD used by the UI during E2E runs; updated translation reference line numbers accordingly.

Reviewed changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/tests/playlists.test-e2e.tsx New E2E test covering playlist empty state, creation, rename, and grouping behavior.
src/tests/test-helpers.tsx Adds reusable navigation + library scan helpers for E2E tests.
src/tests/library.test-e2e.tsx Uses new helpers to reduce repetition in library E2E tests.
src/tests/player.test-e2e.tsx Uses new helpers to reduce repetition in player E2E test.
src/routes/playlists.tsx Adds test IDs for playlist creation CTA and the “new playlist” button.
src/elements/ButtonIcon.tsx Allows passing through a data-testid to the underlying <button>.
src/components/SideNavLink.tsx Adds a test ID for rename input and enables rename via double-click for playlist items.
src/components/SideNav.tsx Adds a test ID to letter group headers for assertions.
src/lib/mocks/bridge-database.ts Adds in-memory playlist support for E2E (get/create/rename/setTracks/delete).
src/translations/*.po Updates extracted source references to match shifted line numbers.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@martpie martpie force-pushed the playlists-e2e-tests branch from d70c8db to ae3e238 Compare March 23, 2026 23:23
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.

2 participants