Conversation
Contacts: - ContactForm: create, edit, validation (name, contact method, phone), submit success/failure, loading state, cancel navigation - ContactsList: list, empty state, search, loading, pagination, phone-only contact, multi-owner badge, row click navigation - ContactDetail: loading, not found, view details, edit, hide (with confirm) - EmptyContactsList: empty state and New Contact link Chat: - ChatInput: placeholder, submit, empty/whitespace, Shift+Enter, clear on success / keep on reject, status=streaming (Stop), initialContext - Mentions: contact/company suggestions, submit with contextEntities, filter by search - NewChatPage: create chat via fetch, redirect, localStorage firstMessage, failure handling, disabled while submitting Made-with: Cursor
- companies.test.tsx: CompanyForm, CompaniesList, CompanyDetail, EmptyCompaniesList - deals.test.tsx: DealForm, DealsList, DealDetail, EmptyDealsList - settings.test.tsx: SettingsPage, ConnectGitHub, InstallGitHubApp - Covers forms, lists, detail views, validation, navigation, and API mocks Made-with: Cursor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Vitest-based UI tests for the web app: contacts, chat, companies, deals, and settings. Includes Vitest setup and lint fixes across the test files.
What's included
Setup
vitest.config.ts,__tests__/setup.ts)Contacts (
contacts.test.tsx)Chat (
chat.test.tsx)Companies (
companies.test.tsx— 29 tests)Deals (
deals.test.tsx— 28 tests)Settings (
settings.test.tsx— 15 tests)