Skip to content

Development environment setup#33

Merged
iLevyTate merged 7 commits intomainfrom
cursor/development-environment-setup-2eae
Feb 27, 2026
Merged

Development environment setup#33
iLevyTate merged 7 commits intomainfrom
cursor/development-environment-setup-2eae

Conversation

@iLevyTate
Copy link
Owner

Summary

  • Added AGENTS.md with development environment setup, workarounds for cloud VMs, and links to test files.
  • Introduced 24 new Jest component tests for core UI interactions and 54 new Playwright E2E tests covering the full beta workflow and previously missing areas (e.g., full pipeline, vision/OCR, chat, graph, settings backup, session persistence, model switching).
  • Fixed a pre-existing platformUtils.test.js bug, ensuring all 6,109 automated tests now pass.

Scope

  • Area(s): docs, testing, e2e, components, core
  • Risk Level: Low
  • Breaking Changes: None

Type of Change

  • Bug fix
  • Enhancement
  • New feature
  • Refactor
  • Documentation update
  • Breaking change

Test Plan

Automated

  • npm run format:check
  • npm run lint
  • npm test (All 6,109 tests now pass)
  • Additional tests added/updated when behavior changed

Manual QA

  • Manual checklist completed (see TESTING.md)
  • Not applicable (explain below)

Manual QA notes:

  • Full app walkthroughs (first-time install, smart folder creation, file import, AI analysis, organization, Knowledge OS) were performed and recorded.
  • Verified AI categorization of 9 files into Nature, Finances, Research folders.
  • Confirmed image/PDF vision+OCR analysis.
  • Tested settings backup/restore, undo/redo, batch operations, and naming conventions.
  • Known Limitations (VM-specific): E2E Playwright tests cannot launch Electron (pre-existing App version "0.0" error), and large LLM inference/consecutive chat queries cause renderer crashes due to CPU memory limits.

Checklist

  • I scoped this PR to one logical change
  • I self-reviewed code and naming for clarity
  • I updated docs/config references where needed
  • I called out follow-up work or known limitations

Open in Web Open in Cursor 

cursoragent and others added 6 commits February 24, 2026 22:46
Co-authored-by: Levy Tate <iLevyTate@users.noreply.github.com>
- E2E: beta-workflow.spec.js — 30 Playwright tests covering:
  Setup phase (smart folder CRUD via API and UI)
  Discover phase (file import UI, drag-drop, API)
  Organize phase (empty state, undo/redo API)
  Search/Knowledge OS (Ctrl+K modal, search input)
  Settings (panel open/close, sections, API)
  Cross-phase navigation and API surface validation

- Component: BetaWorkflowInteraction.test.js — 24 Jest tests covering:
  Navigation rendering and dispatch interactions
  Smart folder state management actions
  Analysis state machine (start/progress/success/failure)
  Phase transition validation
  Settings toggle and loading state
  File state lifecycle tracking
  Notification system integration
  Mock state builder for all beta test scenarios
…nd Linux

The Linux path test failed when run after the Windows test because
jest.resetModules() did not fully isolate Babel-transpiled ES module
state across evaluations. The module-level `isWindows` constant from
the Windows test leaked into the Linux test's module evaluation.

Fix: reorder Linux test first, use jest.isolateModules() for true
module isolation, save/restore navigator in beforeEach/afterEach,
and add writable flag to Object.defineProperty for reliable cleanup.
…d features

New E2E test specs (54 tests total):

- full-pipeline.spec.js (9): Analysis → organize → complete pipeline,
  smart folder routing, batch organize API, phase navigation
- vision-ocr-analysis.spec.js (7): Vision/OCR API surface, model config,
  image/PDF file type support, analysis history tracking
- chat-understand.spec.js (6): Chat API surface, Understand tab UI,
  chat input/send, new chat button, conversation history
- knowledge-graph.spec.js (11): Relate tab UI, graph controls, legend,
  cluster toggle, add-to-graph search, knowledge/embedding APIs
- settings-backup-restore.spec.js (7): Settings CRUD roundtrip, backup
  list, log export UI, settings sections validation
- session-persistence.spec.js (5): Smart folder persistence across
  restart, settings persistence, undo/redo state, analysis history
- model-switching.spec.js (9): Model listing, config read/write, text
  model update, connection status, AI settings UI, model selectors
@cursor
Copy link

cursor bot commented Feb 27, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@iLevyTate iLevyTate merged commit 014d26a into main Feb 27, 2026
6 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.

2 participants