Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port List e2e test to unit tests #5030

Merged
merged 3 commits into from
Sep 26, 2023
Merged

Port List e2e test to unit tests #5030

merged 3 commits into from
Sep 26, 2023

Conversation

acywatson
Copy link
Contributor

WIP

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 20, 2023
@vercel
Copy link

vercel bot commented Sep 20, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lexical ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 22, 2023 7:00pm
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 22, 2023 7:00pm

@github-actions
Copy link

github-actions bot commented Sep 20, 2023

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
packages/lexical/dist/Lexical.js 28.27 KB (0%) 566 ms (0%) 196 ms (-49.48% 🔽) 761 ms
packages/lexical-rich-text/dist/LexicalRichText.js 39.57 KB (0%) 792 ms (0%) 497 ms (+15.85% 🔺) 1.3 s
packages/lexical-plain-text/dist/LexicalPlainText.js 39.54 KB (0%) 791 ms (0%) 301 ms (+34.68% 🔺) 1.1 s


describe('@lexical/list tests', () => {
let container: HTMLDivElement | null = null;
let reactRoot;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a blocker, but I wonder if we even need react here? I guess list plugin should have registerList or similar exposed, then there's just less of react-related noise in the code

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about this, but the reason I ultimately kept it is because I want to be able to easily compose the plugins, many of which don't expose neat handles in the same way as @lexical/list. Most things in @lexical/react are exposed as react components, and those are the bulk of what I want to test so we can get rid of some e2es

@acywatson acywatson marked this pull request as ready for review September 25, 2023 15:55
Copy link
Member

@zurfyx zurfyx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's very nice! ✨

@acywatson acywatson merged commit 0ec034e into main Sep 26, 2023
@acywatson acywatson deleted the ut-life branch September 26, 2023 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants