Skip to content

Add multi-tab/pane integration tests for reactivity system #641

Closed

Description

@malibio

Summary

The multi-tab/pane reactivity system lacks explicit integration tests. While the architecture is sound, there are no tests verifying that changes in one pane propagate correctly to other panes.

Background

Identified in the multi-tab reactivity investigation (Issue #631).

Test Scenarios Needed

1. Content Update Propagation

  • Open 2 viewers of same node
  • Edit in viewer 1
  • Verify viewer 2 updates without network round-trip
  • Verify latency < 10ms

2. Structural Change Propagation

  • Open 2 viewers of same parent
  • Indent child in viewer 1
  • Verify viewer 2 shows new parent in hierarchy
  • Verify chevron appears in both viewers

3. Cross-Pane Split View

  • Open split panes in same tab
  • Edit in left pane
  • Verify right pane updates
  • Verify scroll positions remain independent

4. Placeholder Promotion

  • Create new node in pane 1
  • Pane 2 viewing same parent
  • Verify placeholder ID consistent when promoted
  • Verify both panes show same final node ID

5. Concurrent Conflict

  • Pane A edits node:content
  • Pane B edits same node:properties
  • Verify conflict detected
  • Verify appropriate handling (silent or user-notified)

Acceptance Criteria

  • Create src/tests/integration/multi-tab-reactivity.test.ts
  • Implement content update propagation test
  • Implement structural change propagation test
  • Implement cross-pane split view test
  • Implement placeholder promotion sync test
  • Implement concurrent conflict test
  • All tests passing in CI

Priority

MEDIUM - Important for confidence in multi-tab behavior but no immediate user-facing bug

Related

Activity

  1. malibio commented on Dec 5, 2025

    @malibio
    CollaboratorAuthor

    Starting work on this issue. Test baseline: Frontend: 77 files, 1584 tests passed. Rust: 139 passed, 0 failed, 24 ignored.

  2. self-assigned this
    on Dec 5, 2025
  3. added a commit that references this issue on Dec 5, 2025
    45e7c24
  4. added a commit that references this issue on Dec 5, 2025
    14cc7ae
  5. added a commit that references this issue on Feb 26, 2026
    026ad17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions