Skip to content

fix(frontend): fix MessagePart and BottomSheet test failures#191

Merged
chriswritescode-dev merged 1 commit intomainfrom
opencode/refactor-session-activity
Apr 23, 2026
Merged

fix(frontend): fix MessagePart and BottomSheet test failures#191
chriswritescode-dev merged 1 commit intomainfrom
opencode/refactor-session-activity

Conversation

@chriswritescode-dev
Copy link
Copy Markdown
Owner

Summary

Fixes 2 failing tests:

  • MessagePart test: Mocked EventContext hooks (usePermissions, useQuestions) to avoid SSE/EventSource issues in test environment. Added necessary providers (QueryClientProvider, MemoryRouter) for the tool part test.
  • BottomSheet test: Updated test to correctly verify pb-safe class on BottomSheetContent component instead of the dialog element.

All 363 tests now pass.

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation

Checklist

  • Code follows project style (no comments, named imports)
  • TypeScript types are properly defined
  • Tests added/updated (80% coverage target)
  • pnpm lint passes locally
  • pnpm typecheck passes locally

@chriswritescode-dev chriswritescode-dev merged commit f41bf37 into main Apr 23, 2026
3 checks passed
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