Skip to content

test(react): reproduce the Safari code block Enter corruption - #529

Draft
ocavue wants to merge 2 commits into
masterfrom
test/safari-code-block-enter-repro
Draft

test(react): reproduce the Safari code block Enter corruption#529
ocavue wants to merge 2 commits into
masterfrom
test/safari-code-block-enter-repro

Conversation

@ocavue

@ocavue ocavue commented Aug 30, 2026

Copy link
Copy Markdown
Member

Repro only, no fix, driven entirely by user gestures (click, arrow keys, a plain Enter). The new react-webkit-ios vitest project runs the test with an iPhone Safari user agent, where prosemirror-view hands every plain Enter in a code block to WebKit's native editing: the <pre> gets clone-split and the React node view leaves a rogue <br> or silently deletes the text before the caret, so test-mac-webkit is expected to fail while the same gestures pass on desktop browsers. The other entrance (desktop Safari, IME commit then Enter within 500ms) cannot be automated because no driver can operate the OS input method; reproduce it manually, or see the fix in #522.

@coderabbitai

coderabbitai Bot commented Aug 30, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@vercel

vercel Bot commented Aug 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
meowdown Ready Ready Preview Aug 30, 2026 5:05pm

@pkg-pr-new

pkg-pr-new Bot commented Aug 30, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@meowdown/core@529
npm i https://pkg.pr.new/@meowdown/markdown@529
npm i https://pkg.pr.new/@meowdown/react@529

commit: 0940180

@github-actions

github-actions Bot commented Aug 30, 2026

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 93.99% 5084 / 5409
🔵 Statements 91.69% 5745 / 6265
🔵 Functions 91.89% 1213 / 1320
🔵 Branches 87.63% 3721 / 4246
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/vitest/src/config.ts 0% 0% 0% 0% 5-89
Generated in workflow #2082 for commit 0940180 by the Vitest Coverage Report Action

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