Skip to content

test: add E2E tests for workspace home page interactions (#1041)#1046

Merged
sw-factory-automations merged 1 commit into
mainfrom
feat/1041-workspace-home-e2e-tests
May 12, 2026
Merged

test: add E2E tests for workspace home page interactions (#1041)#1046
sw-factory-automations merged 1 commit into
mainfrom
feat/1041-workspace-home-e2e-tests

Conversation

@sw-factory-automations

Copy link
Copy Markdown
Collaborator

Closes #1041

What

Adds 6 E2E tests for the workspace home page (e2e/workspace-home.spec.ts), covering all interactive features that previously had no E2E coverage.

Tests added

Test What it verifies
New Page button Clicking "New Page" creates a page and navigates to the editor
Filter input Typing in the filter input filters the "All Pages" list by title
Sort dropdown Changing the sort dropdown reorders the page list (Title A-Z, Title Z-A)
Page navigation Clicking a page in the list navigates to that page
Clear filter "Clear filter" button appears when filter matches nothing, resets the list
Recently Visited Visiting a page and returning shows it in the "Recently Visited" section

How

  • All tests use the authenticatedPage fixture from e2e/fixtures/auth.ts
  • Page list items are scoped to the "All Pages" section via div.mt-6 filter to avoid matching "Recently Visited" buttons
  • Sort verification checks consecutive pair ordering rather than full array equality to handle locale-sensitive localeCompare differences
  • Helper functions (getPageListItems, collectTitles, waitForWorkspaceHome) keep tests DRY

Testing

  • pnpm lint — 0 errors
  • pnpm typecheck — passes
  • pnpm test — 139 files, 1877 tests pass
  • pnpm test:e2e (workspace-home.spec.ts) — all 6 tests pass

Note: Intermittent auth timeouts in the Supabase auth fixture affect all E2E tests (including pre-existing ones like page-crud.spec.ts). CI retries handle this (retries: 1 in playwright.config.ts).

@vercel

vercel Bot commented May 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
memo Ready Ready Preview, Comment May 12, 2026 6:51am

Request Review

@sw-factory-automations sw-factory-automations merged commit 5698295 into main May 12, 2026
9 checks passed
@sw-factory-automations sw-factory-automations deleted the feat/1041-workspace-home-e2e-tests branch May 12, 2026 07:06
@sw-factory-automations

Copy link
Copy Markdown
Collaborator Author

✅ Post-merge verification skipped — test: PR does not affect the live app. No production code was changed (only E2E test files added).

@sw-factory-automations

Copy link
Copy Markdown
Collaborator Author

✅ UI verification skipped — this PR contains no UI changes (only E2E tests and quality docs).

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.

test: add E2E tests for workspace home page interactions

1 participant