Files
shumai/apps/web/e2e
Yiling-J 1f2bdc8c9e feat(agentic kanban): phase 1 not-agentic kanban board (#330)
* feat(kanban): implement AI-native kanban database models, services, and REST APIs

* feat(webui): implement team kanban board and task management

* style(webui): increase kanban dialog widths and form container

* fix(webui): ensure kanban dialogs override sm:max-w-lg base class

* style(webui): set edit task dialog max width to 5xl

* chore: untrack kanban plan markdown files

* feat(webui): update kanban page layout to 2 columns and refine task activity UI

* fix(webui): constrain kanban column and board heights for vertical scrolling

* feat(kanban): unify task status transition into updateTask API and allow unconstrained human task transitions

* fix(webui): add optimistic updates to kanban drag-and-drop to eliminate flash

* refactor(webui): remove client-side search box from kanban header

* feat(kanban): redesign task dialog comments area and add attachment support

* refactor(webui): remove top status action bar from task info dialog

* fix(webui): narrow query cache predicate and add defensive guards for kanban drag optimistic update

* feat(kanban): add drag-and-drop task reordering with fractional indexing (#331)

* feat(kanban): add drag-and-drop task reordering with fractional indexing

* fix(kanban): improve card drop zones, snap indicators, and column highlight

* fix(kanban): enable card droppables only during active drag

* fix(kanban): refine hover styles and drop indicators for column boundaries

* fix(kanban): unify bottom drop indicator and fix top indicator clipping

* fix(kanban): ensure full column highlight and full coverage drop target

* minor change

* feat(kanban): allow agent tasks free drag-and-drop and enforce status change permissions (#332)

* refactor(kanban): rename task_type_agentic translation keys to task_type_agent

* feat(kanban): refactor task type enum to isAgentTask boolean (#333)

* refactor(kanban): remove phase 2 agent execution logic and streamline phase 1 kanban

* feat(kanban): add notifications and audit logging for kanban (#334)

* feat(kanban): redesign config area layout and add parent tasks multi-selector (#335)

* feat(webui): redesign kanban task dialog config area

* feat(kanban): simplify task dependencies with parent tasks multi-selector

* refactor(kanban): remove unused links routes and legacy dependency methods

* feat(kanban): connect assets and kanban tasks with many-to-many relationship (#336)

* feat(kanban): connect assets and kanban tasks with many-to-many relationship

* feat(kanban): improve asset picker layout, infinite scrolling, and breadcrumb icon styling

* fix(kanban): ensure asset picker scrollarea is scrollable with min-h-0 and shrink-0 flex styling

* fix(kanban): hide recently deleted in folder tree picker and adjust header padding

* fix(kanban): use lucide files icon instead of paperclip for linked assets

* feat(kanban): improve task deletion, goal sidebar interaction, and card styling (#337)

* feat(kanban): improve task deletion, goal sidebar interaction, and card styling

* feat(kanban): move agent task badge after priority and update to orange style

* feat(kanban): add status Compare-And-Swap (CAS) to prevent drag-and-drop race conditions (#338)

* feat(kanban): add status Compare-And-Swap (CAS) to prevent drag-and-drop race conditions

* style(kanban): rotate kanban icon 180 degrees in sidebar and top nav

* style(kanban): remove rotate-180 from SquareKanban icons

* feat(kanban): add unassigned goal record and fix all tasks count (#339)

* feat(kanban): add unassigned goal record and fix all tasks count

* feat(kanban): toggle task count with three-dot action button on goal card hover

* fix(ci): pin bun version to 1.3.14 across CI and Docker (#340)

* fix(webui): truncate goal name to max 2 lines in kanban sidebar (#341)
2026-08-23 10:28:56 +08:00
..

Web App E2E Tests

Fullstack end-to-end tests for the Shumai web app. They run against a real backend (pgvector container + local S3 storage) served on http://localhost:5200 and are executed with Playwright via bun run test:e2e:app.

Structure

apps/web/e2e/
├── fixtures.ts          # prisma / owner / project / file fixtures
├── serve.ts             # starts the test DB container + web app
├── global-teardown.ts   # stops the container and cleans up storage
├── helpers/
│   ├── auth.ts          # signup / auth-state injection helpers
│   ├── project.ts       # project creation helpers
│   ├── files.ts         # share link API helpers
│   ├── team.ts          # team member seeding helpers
│   └── ui.ts            # common UI flows (signup, login, members dialog)
└── tests/<domain>/      # domain-scoped specs (auth, team, project)

Fixtures

  • prisma — auto fixture that truncates all tables before each test. Also the direct way to read/write DB state for assertions and seeding.

  • owner — an authenticated team owner (seeded through the API), with the session cookie and auth state injected into the browser context, opened on the team page.

  • project — owner plus a project created through the API (projectId, projectName).

  • file — project plus a seeded processed file asset in the project root (fileId, fileName). The media kind is configurable per test via fileOptions (default binary):

    // default binary file (no extension, no proxy)
    test('...', async ({ file }) => {})
    
    // type-scoped file for future viewer/transcode tests
    test('...', { fileOptions: { mediaType: 'image' } }, async ({ file }) => {})
    
    mediaType filename notes
    binary (default) test-file-<ts> never transcoded, no proxy
    text test-file-<ts>.txt gets a PDF proxy in real usage
    image test-file-<ts>.png
    video test-file-<ts>.mp4
    pdf test-file-<ts>.pdf
    audio test-file-<ts>.wav

Test Cases

auth

Test File
Sign up as the first user and become the team owner tests/auth/signup.spec.ts
Log in with existing credentials tests/auth/login.spec.ts

team

Test File
Owner invites a member via invite link and the invitee joins tests/team/invite-member.spec.ts
Owner removes a member via the members dialog; the membership is deleted from the DB tests/team/remove-member.spec.ts
Owner changes a team member role in the members dialog and permissions update tests/team/change-member-role.spec.ts
Owner manages resource quotas in settings and resets usage from the dashboard tests/team/quotas-settings.spec.ts

project

Test File
Owner creates a project with a cover image tests/project/create-project.spec.ts
Owner uploads a file or an unsupported file via the "Upload File" context menu action tests/project/upload-file.spec.ts
Owner deletes a file, finds it in recently deleted, and restores it tests/project/delete-restore.spec.ts
Owner creates a share link from a file context menu and lands on the share page tests/project/create-share-link.spec.ts
Owner protects a share with a password; guests must enter it to view tests/project/share-password.spec.ts
Owner creates a collection from the sidebar; the collection shows project files tests/project/create-collection.spec.ts
Owner invites a member to a project; the member only sees the invited project tests/project/invite-member.spec.ts
Owner changes a project member role in the members dialog and permissions update tests/project/change-member-role.spec.ts
Owner adds team member to project with role override and permissions enforce project role tests/project/role-override.spec.ts
Owner deletes a member from project via the members dialog and project access is revoked tests/project/remove-member.spec.ts
Owner drags a file into a folder and a folder into another folder tests/project/move-folder-file.spec.ts
Owner drags a file onto a file to create a version stack tests/project/version-stack-create.spec.ts
Owner drags a file onto a version stack to add a new version tests/project/version-stack-add-version.spec.ts
Owner manages version stack: removes version from 3-version stack tests/project/version-stack-manage.spec.ts
Owner removes version from 2-version stack which dissolves into standalone files tests/project/version-stack-manage.spec.ts
Dissolving a shared version stack renders the remaining standalone file name on the share page tests/project/version-stack-manage.spec.ts
Moving a shared file into a shared version stack leaves only 1 stack card on the share page tests/project/version-stack-manage.spec.ts
Owner searches the file list by an English name keyword tests/project/search-file-list.spec.ts
Owner searches the file list by Chinese, Japanese, and Korean name keywords tests/project/search-file-list.spec.ts
Owner searches the file list with a keyword and a filter condition tests/project/search-file-list.spec.ts
Owner saves a search result as a collection tests/project/save-search-collection.spec.ts
Image share with watermark + download disabled: no download buttons on public list/detail pages, watermarked proxy served, download-url rejected tests/project/share-watermark-no-download.spec.ts
Video share with watermark + download disabled: no download buttons on public list/detail pages, watermarked proxy served, download-url rejected tests/project/share-watermark-no-download.spec.ts

file

Test File
Create a comment on a binary file tests/file/binary-comment.spec.ts
Upload a txt file, wait for transcode, and create a comment with draw tests/file/txt-draw-comment.spec.ts
Upload an image file, wait for transcode, and create a comment with draw tests/file/image-draw-comment.spec.ts
Upload a video file, wait for transcode, and create a comment with draw at a non-zero timestamp tests/file/video-draw-comment.spec.ts
Upload an audio file, wait for transcode, and create a comment at a non-zero timestamp tests/file/audio-timestamp-comment.spec.ts

Conventions

  • Seed data via fixtures/API/DB; use the UI only for the flow under test.
  • Each test truncates all tables via the auto prisma fixture, so fixtures must create their data per-test.
  • App projects run with workers: 1 because all tests share a single database.
  • Every new test case MUST be documented in this README.