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

chore: add e2e tests for maxlength plugin #2478

Merged
merged 3 commits into from
Aug 28, 2022

Conversation

im-adithya
Copy link
Contributor

Follow up to #2467 which failed e2e

@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 Jun 20, 2022
@vercel
Copy link

vercel bot commented Jun 20, 2022

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

Name Status Preview Updated
lexical ✅ Ready (Inspect) Visit Preview Aug 10, 2022 at 7:29PM (UTC)
lexical-playground ✅ Ready (Inspect) Visit Preview Aug 10, 2022 at 7:29PM (UTC)

Copy link
Contributor

@thegreatercurve thegreatercurve left a comment

Choose a reason for hiding this comment

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

Thanks!

Copy link
Contributor

@thegreatercurve thegreatercurve left a comment

Choose a reason for hiding this comment

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

Actually looks like there may be a bug with the plugin or the E2Es. Some of these E2Es are failing legitimately.

@fantactuka
Copy link
Contributor

fantactuka commented Jun 22, 2022

Somehow messed up with tabs and pressed approve in a wrong one 🤷‍♂️ John's change request makes sense

@im-adithya
Copy link
Contributor Author

Fixed! I wasn't using focusEditor in collab mode which caused the error.
The tests are still failing though but because of another issue...
I don't understand why this is happening:

-   <span data-lexical-text="true">lorem ipsum dolor sit amet, c</span>
+   <span data-lexical-text="true">lorem ipsum dolor sit amet, c&nbsp;</span>

This same test was passing before I added the focusEditor line (check here) but is failing above.

But I can't seem to reproduce this in my localhost (in firefox)... And this error doesn't seem to occur in mac.

Why is this happening?

@acywatson
Copy link
Contributor

Looks like we still have failing tests here

@im-adithya
Copy link
Contributor Author

@acywatson @thegreatercurve ready to merge!

@thegreatercurve thegreatercurve merged commit 24e218a into facebook:main Aug 28, 2022
thegreatercurve pushed a commit that referenced this pull request Nov 25, 2022
* chore: add e2e tests for maxlength plugin

* fix

* fix
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.

5 participants