Skip to content

Latest commit

 

History

History
63 lines (39 loc) · 2.55 KB

BEHAVIOUR.md

File metadata and controls

63 lines (39 loc) · 2.55 KB

DiffVisualizer — behaviour

Each section is one scenario from tests/e2e/features/, with the screenshot the test captured at its final assertion. 10 of 10 scenarios have one.

Rendering diffs

A diff block in the chat is rendered as a visual diff

BEH-1, BEH-3

A diff block in the chat is rendered as a visual diff

The rendered diff offers maximize and copy

BEH-2

The rendered diff offers maximize and copy

Diff overlay, copy, and edge-case handling

Maximizing a rendered diff opens a single fullscreen overlay

BEH-4

Maximizing a rendered diff opens a single fullscreen overlay

The overlay closes via its close button and the inline diff survives

BEH-5

The overlay closes via its close button and the inline diff survives

The overlay closes via a backdrop click

BEH-5

The overlay closes via a backdrop click

The overlay closes via the Escape key

BEH-5

The overlay closes via the Escape key

Copying a rendered diff puts the raw diff text on the clipboard

BEH-6

Copying a rendered diff puts the raw diff text on the clipboard

A multi-file diff renders both files inside one visual diff

BEH-1

A multi-file diff renders both files inside one visual diff

Malformed diff text falls back to the readable plain code block

BEH-3

Malformed diff text falls back to the readable plain code block

A non-diff code fence is left untouched

BEH-1

A non-diff code fence is left untouched