fix: E2E test failures from fragile navigation and broken link editor (#85)#90
Merged
zacharias-ona merged 1 commit intomainfrom Apr 16, 2026
Merged
fix: E2E test failures from fragile navigation and broken link editor (#85)#90zacharias-ona merged 1 commit intomainfrom
zacharias-ona merged 1 commit intomainfrom
Conversation
…#85) Co-authored-by: Ona <no-reply@ona.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Collaborator
Author
|
✅ Post-merge verification passed. E2E test suite: 27/27 passed against Ad-hoc smoke tests:
|
Collaborator
Author
|
✅ UI verification passed — design spec compliance confirmed. Changed UI files:
Static analysis: No CSS/class changes introduced. Existing styles in all three files verified against Visual verification: Playwright screenshots taken of editor and workspace pages (desktop 1280×800 dark + mobile 375×812). No layout regressions, broken elements, or design spec violations detected. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #85
What
15 of 27 E2E tests failed when run against the live site. The failures had two root causes: (1) E2E tests used a fragile
/ago/regex to find sidebar page buttons for navigation, which silently failed when pages showed "just now" instead of "X ago", leaving tests on the workspace home page with no editor; (2) the editor's link creation was broken becausevalidateUrl("https://")rejected the placeholder URL used by the toolbar link button and ⌘+K shortcut.How
E2E test fixes:
e2e/fixtures/editor-helpers.tswithnavigateToEditorPage()— waits for the sidebar page tree to load, then clicks an existing page or creates one. Replaces all/ago/navigation patterns.modifierKey()helper returningControlon Linux /Metaon macOS. Replaced hardcodedMeta+b,Meta+k,Meta+ashortcuts.getByRole("complementary")to avoid strict mode violations (sidebar and workspace home both have a "New Page" button).handleCreatefunction silently returns ifworkspaceIdhasn't been fetched yet).Application bug fixes:
validateUrl()ineditor.tsx: Accept"https://"and"http://"as valid placeholder URLs during link creation.floating-link-editor-plugin.tsx: Useeditor.update()with$toggleLink()instead ofeditor.dispatchCommand()insideeditor.read()for the ⌘+K shortcut. UserequestAnimationFrameinstead ofsetTimeout(50)to set editing mode after React renders.floating-toolbar-plugin.tsx: AddonMouseDown={(e) => e.preventDefault()}to toolbar buttons to preserve editor selection when clicking.Testing
All 27 E2E tests pass (
pnpm test:e2e), all 50 unit tests pass (pnpm test), lint and typecheck clean.