Skip to content

Fix Command Integration (14 test failures) #265

Closed

Description

@malibio

Bug: Command Integration Failures

Related to: Issue #208 (Comprehensive Test Coverage)
Test Files: merge-nodes.command.test.ts (8), slash-command-integration.test.ts (6)
Failures: 14 tests total

Problem

Command keyboard handlers and slash command dropdown failing across execution, filtering, and selection scenarios.

Failing Tests

Merge Nodes Command (8 tests)

  • should execute for Backspace at start of node
  • should not execute for Backspace in middle of node
  • should not execute for non-Backspace keys
  • should execute for multiline node at start of first line
  • should not execute for multiline node not at position 0
  • should delete empty node
  • should combine with previous node
  • should not execute (not yet implemented)

Slash Command Integration (6 tests)

  • should display slash command dropdown when typing "/"
  • should filter commands based on query text
  • should close dropdown after Enter key selection (proves callback is wired)
  • should close dropdown after mouse click selection (proves callback is wired)
  • should close dropdown on Escape without triggering selection
  • should navigate through commands with arrow keys

Acceptance Criteria

  • All 14 tests pass
  • Merge nodes command executes correctly for Backspace at start
  • Slash dropdown displays and filters commands
  • Selection callbacks wired correctly
  • Quality checks pass: bun run quality:fix

Testing

bun run test src/tests/commands/keyboard/merge-nodes.command.test.ts
bun run test src/tests/integration/slash-command-integration.test.ts

Activity

  1. malibio commented on Oct 17, 2025

    @malibio
    CollaboratorAuthor

    ✅ All command integration tests passing after #274 textarea migration.

    The keyboard command tests have been updated for the textarea API and are all passing:

    • ✅ create-node.command.test.ts
    • ✅ merge-nodes.command.test.ts
    • ✅ navigate-up.command.test.ts
    • ✅ navigate-down.command.test.ts
    • ✅ indent-node.command.test.ts
    • ✅ outdent-node.command.test.ts
    • ✅ format-text.command.test.ts
    • ✅ keyboard-command-integration.test.ts

    All slash command integration tests were in deleted files specific to contenteditable.

    Current status: 813/814 tests passing (99.9%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions