Skip to content

[tests] Chore: Update table test to use locator API instead of page.evaluate#7603

Merged
etrepum merged 1 commit intofacebook:mainfrom
etrepum:table-test-evaluate
Jun 4, 2025
Merged

[tests] Chore: Update table test to use locator API instead of page.evaluate#7603
etrepum merged 1 commit intofacebook:mainfrom
etrepum:table-test-evaluate

Conversation

@etrepum
Copy link
Copy Markdown
Collaborator

@etrepum etrepum commented Jun 3, 2025

Description

I noticed that this table test failed for no particular reason and saw that it was using an awkward API to check its condition. Using locators and the playwright expect API should be a bit more resilient. I didn't see any other usage of page.evaluate that looked suspect.

  1 failed
    [chromium] › packages/lexical-playground/__tests__/e2e/Tables.spec.mjs:6770:3 › Tables › Table action menu is hidden when cell overflows 

Test plan

Before

Test sometimes fails

After

Hopefully it fails less

@etrepum etrepum added the extended-tests Run extended e2e tests on a PR label Jun 3, 2025
@vercel
Copy link
Copy Markdown

vercel bot commented Jun 3, 2025

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 Jun 3, 2025 11:03pm
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 3, 2025 11:03pm

@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 3, 2025
@etrepum etrepum marked this pull request as ready for review June 3, 2025 23:44
@etrepum etrepum added this pull request to the merge queue Jun 4, 2025
Merged via the queue into facebook:main with commit 6da5974 Jun 4, 2025
68 of 97 checks passed
@etrepum etrepum mentioned this pull request Jun 4, 2025
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. extended-tests Run extended e2e tests on a PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants