-
Notifications
You must be signed in to change notification settings - Fork 4k
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
[Experiment] Try running performance tests w/ Playwright #34699
Conversation
Size Change: 0 B Total Size: 1.06 MB ℹ️ View Unchanged
|
Yeah, that's the important bit. The other one which would be harder to check is whether the auto-waits could "hide" performance impact. Meaning, if something is slower but both branches auto-waits, could this lead to numbers being "normalized" in both cases? I don't think the ones relying on "trace" would be but the ones relying on timers (load I think) could. |
Not sure what you mean, sorry. How could something that is slower/faster than the comparison branch be obscured by the auto-waiting mechanism? |
8e63353
to
3cdb35f
Compare
@WunderBart hey! I'm from the Playwright team, saw that you are considering migrating to Playwright. Awesome work so far! If you have any questions, don't hesitate to reach out to me. In general we recommend our own test-runner (which is quite similar to the Jest test-runner but written from scratch) since it contains a lot of end-to-end testing utils, tooling, concurrency, reporting, assertions, artifacts etc. and an extensive configuration support. In your scenario it might make sense to do it in iterations and migrate to it in a later standpoint. |
Thanks so much for reaching out, @mxschmitt! It's all still very much in a POC phase. Having said that, I'm pretty optimistic about the migration as more and more folks seem to be on board with it. Regarding the first-party test-runner, I'd really like to see it utilized in Gutenberg eventually. I'm not yet fully familiarized with all the custom e2e things that are being currently provided for Puppeteer though, so I can't say how feasible the migration to Playwright test-runner would be. I'd love to hear what some more experienced folks have to say about it, though! 🙏 /cc @gziolo @youknowriad @tellthemachines @kevin940726 |
It's not available directly via Page with Playwright
d498111
to
258ea78
Compare
I'd say it's pretty feasible. However, I don't see any reasons to migrate to that now since that Jest seems to work just fine too and people are already familiar with it. We can definitely re-consider it in a later standpoint as you said though 👍 . Thanks for the offer, @mxschmitt, let's keep in touch |
Base PR: #34089
Following up on concerns about performance metrics, I've migrated (all) the performance tests to Playwright and compared them to ones ran with Puppeteer. It looks like Playwright is showing just a tad better numbers in terms of speed and stability, but the important part is that those metrics do not differ significantly, I guess? Pinging @youknowriad and @tellthemachines for some feedback on these numbers 🙏
You can run migrated performance tests locally by checking out this branch and running
npm run test-performance
.