Skip to content

test: add E2E tests for workspace settings (#225)#232

Merged
zacharias-ona merged 1 commit into
mainfrom
feat/225-workspace-settings-e2e
Apr 18, 2026
Merged

test: add E2E tests for workspace settings (#225)#232
zacharias-ona merged 1 commit into
mainfrom
feat/225-workspace-settings-e2e

Conversation

@zacharias-ona
Copy link
Copy Markdown
Collaborator

Closes #225

What

Adds E2E tests for workspace settings: edit name/slug, delete workspace, and personal workspace protection.

How

Three Playwright tests in e2e/workspace-settings.spec.ts:

  1. Personal workspace cannot be deleted — navigates to settings for the personal workspace, verifies the "cannot be deleted" message is shown and no delete button exists.

  2. Change workspace name and verify sidebar updates — creates a test workspace via admin client, navigates to its settings, changes the name, saves, reloads, and verifies the sidebar workspace switcher reflects the new name.

  3. Delete non-personal workspace with confirmation — creates a test workspace via admin client, navigates to its settings, clicks delete, confirms in the AlertDialog, verifies redirect to the personal workspace, and confirms the deleted workspace no longer appears in the workspace switcher.

Test workspaces are created/cleaned up via the Supabase admin client (bypassing RLS) to avoid a pre-existing issue where the CreateWorkspaceDialog component's .insert().select().single() chain fails because the SELECT RLS policy requires membership that hasn't been created yet. Tests run serially to avoid workspace slot contention.

Testing

  • pnpm lint
  • pnpm typecheck
  • pnpm test — 252 tests pass ✅
  • pnpm test:e2e — 71 tests pass (68 existing + 3 new) ✅

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 18, 2026

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

Project Deployment Actions Updated (UTC)
memo Ready Ready Preview, Comment Apr 18, 2026 8:16am

Request Review

@zacharias-ona zacharias-ona merged commit e92fff2 into main Apr 18, 2026
6 checks passed
@zacharias-ona zacharias-ona deleted the feat/225-workspace-settings-e2e branch April 18, 2026 08:18
@zacharias-ona
Copy link
Copy Markdown
Collaborator Author

✅ UI verification skipped — no UI files changed (only e2e/workspace-settings.spec.ts).

@zacharias-ona
Copy link
Copy Markdown
Collaborator Author

✅ Post-merge verification skipped — test: PR does not affect the live app.

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 settings (edit name/slug, delete)

1 participant