Skip to content

test(e2e): disambiguate New now that the tree can make a page too - #17

Merged
meocong merged 1 commit into
masterfrom
fix/first-run-ambiguity
Aug 14, 2026
Merged

test(e2e): disambiguate New now that the tree can make a page too#17
meocong merged 1 commit into
masterfrom
fix/first-run-ambiguity

Conversation

@meocong

@meocong meocong commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

The release job's first-run check failed on getByRole("button", { name: "New" }). Playwright matches accessible names by substring, and the sidebar's "New page" is a second match, so the locator was ambiguous.

Made exact. Verified against a freshly built bundle and an empty vault, which is the only place both buttons are on screen at once — and the reason pnpm e2e did not catch it.

🤖 Generated with Claude Code

The release check failed on `getByRole("button", { name: "New" })`: Playwright matches
accessible names by substring, and the sidebar's "New page" is now a second match. Made
exact.

Caught by the release job rather than by `pnpm e2e`, which does not run first-run — it
drives a built bundle against an empty vault, and that is the only place the two buttons
appear on screen together.
@meocong
meocong merged commit 82ab615 into master Aug 14, 2026
10 checks passed
@meocong
meocong deleted the fix/first-run-ambiguity branch August 14, 2026 09:11
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