Skip to content

test(e2e): Phase 2 journey coverage - #26

Merged
RichardHightower merged 1 commit into
mainfrom
test/phase-2-specs
Jul 29, 2026
Merged

test(e2e): Phase 2 journey coverage#26
RichardHightower merged 1 commit into
mainfrom
test/phase-2-specs

Conversation

@RichardHightower

Copy link
Copy Markdown
Contributor

Six specs, each locking a specific past regression rather than testing a feature in the abstract. The commit that broke it is named in each comment.

Spec Locks
view-mode round trip, both directions fb3a3cb — rawMarkdown and the Tiptap doc were independent, so switching mode silently dropped edits
insert a block twice in a row 74647b4 — an atom node at end-of-document left a NodeSelection, so the next insert replaced it. Only the first insert of a session ever worked
insert from the slash menu now addressable as a listbox (Phase 0.5)
rapid file switching B13's load race
Dataset → Query through DuckDB-WASM the full data path

19 E2E specs now, all green, each inheriting the console/network gate.

The Dataset spec found its own bug on the first run: it queried role, a column the demo workspace has and the seeded E2E workspace does not. The app was right, the test was wrong — worth recording, because a test written against the wrong fixture is exactly the kind that gets "fixed" by loosening an assertion.

🤖 Generated with Claude Code

https://claude.ai/code/session_01TYuTJt2hh7k8mg8FXCKrw1

Six specs, each locking a specific past regression rather than testing a feature
in the abstract — the commit that broke it is named in each comment.

- view-mode round trip in both directions (fb3a3cb: rawMarkdown and the Tiptap
  document were independent, so switching mode silently dropped edits)
- inserting a block twice in a row (74647b4: an atom node at end-of-document
  left a NodeSelection, so the next insert replaced it instead of adding — only
  the first insert of a session ever worked)
- inserting from the slash menu, now addressable as a listbox
- rapid file switching landing on the file clicked last (B13's load race)
- Dataset registering and Query returning rows from it, end to end through
  DuckDB-WASM

Nineteen E2E specs now, all green, each inheriting the console/network gate.

The Dataset spec found its own bug on the first run: it queried `role`, a column
the demo workspace has and the seeded E2E workspace does not. The app was right
and the test was wrong — worth recording, because a test written against the
wrong fixture is the kind that gets "fixed" by loosening an assertion.
@RichardHightower
RichardHightower merged commit 1046f49 into main Jul 29, 2026
4 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.

1 participant