Skip to content

Manual Test: Runtime :set Command (#54) #72

@m96-chan

Description

@m96-chan

Feature Overview

Vim-style :set command for changing configuration options at runtime.

Prerequisites

  • Slacko running

Test Cases

TC-1: List all options

  1. Open the command bar and run :set (no arguments)
  2. Expected: All available options with current values are displayed

TC-2: Toggle a boolean option

  1. Run :set mouse
  2. Expected: Mouse option is toggled, feedback message displayed
  3. Run :set mouse again
  4. Expected: Value reverts to original

TC-3: Explicit value assignment with =

  1. Run :set timestamps=on
  2. Expected: Timestamps become visible on messages
  3. Run :set timestamps=off
  4. Expected: Timestamps are hidden

TC-4: Space-separated value assignment

  1. Run :set markdown off
  2. Expected: Markdown rendering is disabled

TC-5: Query current value

  1. Run :set mouse?
  2. Expected: Current value of mouse is displayed

TC-6: Verify each option takes effect

Toggle each option and verify the visual effect:

  • mouse — Enable/disable mouse support
  • timestamps — Show/hide message timestamps
  • markdown — Enable/disable markdown rendering
  • typing — Enable/disable typing indicators
  • presence — Enable/disable presence display
  • date_separator — Enable/disable date separator lines

TC-7: Tab completion

  1. Type set m in the command bar and press Tab
  2. Expected: Autocomplete candidates appear (e.g. mouse, markdown)
  3. Select a candidate
  4. Expected: Input is completed

TC-8: Invalid option name

  1. Run :set nonexistent
  2. Expected: Error message with list of available options

TC-9: Invalid boolean value

  1. Run :set mouse=invalid
  2. Expected: Error message listing accepted values (on/off, true/false, yes/no)

TC-10: Command history

  1. Run :set mouse
  2. Reopen the command bar and press Up arrow
  3. Expected: Previous command set mouse is restored

Metadata

Metadata

Assignees

No one assigned

    Labels

    testingManual testing

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions