Repository navigation
Revert "Fix hashtag regex blocking transform to heading" - #5636
Merged
Merged
Conversation
This reverts commit 49c34ec.
acywatson
requested review from
Fetz,
fantactuka,
ivailop7 and
zurfyx
as code owners
February 20, 2024 15:59
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
zurfyx
approved these changes
Feb 20, 2024
size-limit report 📦
|
etrepum
added a commit
to etrepum/lexical
that referenced
this pull request
Oct 5, 2026
…ixture ## Description The Linux Firefox browser run timed out while typing in a hashtag fixture. Its pending input then interleaved with the following test. The native typing command used a live :focus selector, which can stop matching when the browser deactivates the test frame and later resolve to another editor. Capture the requesting element with a unique temporary selector and let Playwright focus that element before typing. Bound the command to five seconds, below the test timeout, so an unresolved command cannot wait into a later test. Add a two-editor regression that verifies pending input stays with its original editor and preserves Unicode. Collect Vitest's current .vitest/attachments path in CI as well as the existing artifact paths; the failed Firefox job produced screenshots but uploaded no artifacts. ## Test plan ### Before CI on 2cd6717: https://github.com/facebook/lexical/actions/runs/37249685012 Linux Firefox, Hashtags (rich text: false): ``` Should not break with multiple leading "#" meta#5636 Error: Test timed out in 15000ms. Should not break while skipping invalid hashtags meta#5703 Received: ...#hel...#lwoorld#invalid... ``` New regression against the previous helper and command, Linux WebKit: ```sh VITEST_BROWSER=webkit node node_modules/vitest/vitest.mjs run --project=browser packages/lexical-playground/src/__tests__/browser/NativeTyping.test.ts ``` ``` FAIL pending native input stays with the editor that requested it AssertionError: expected '' to be 'A🙂B' Tests 1 failed (1) ``` ### After ```sh VITEST_BROWSER=webkit node node_modules/vitest/vitest.mjs run --project=browser packages/lexical-playground/src/__tests__/browser ``` ``` Test Files 19 passed (19) Tests 142 passed | 1 skipped (143) Duration 17.02s ``` ESLint, Prettier, TypeScript, and git diff --check passed. Linux Firefox is unavailable locally and is validated in CI.
This branch was successfully deployed
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.
@2wheeh
Unfortunately, I made a mistake here - some Meta surfaces support multiple leading "#" characters in a hashtag, so this would break them. Instead, we might need a generic way to override the regex.
Reverts #5376