-
Notifications
You must be signed in to change notification settings - Fork 9
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
Future of this library #558
Comments
Hi @IanVS, thanks for the heads up here. Damn, good thing I didn't build a business on this library 😝. On a more serious note, let me try to provide an objective take on what this means for playwright-testing-library. I haven't played with the new API yet, but going off of the documentation, this is what differentiates this library from the new, native, Playwright offering:
From what I can tell, the advantages of using this library are admittedly somewhat limited. As I pointed out above, I think the As for the future of this library, I think I'll have to do some more tinkering and thinking to provide a more definite answer. Hopefully, the comparison above gives you enough information to make a decision. I also hope we can get some other takes in here. I'm fully committed to continuing to maintain this library if the community thinks it's worth it (including continuing to add features that may never make it into native Playwright). I'll update this issue as my thinking/research evolves. Let me know if you have any specific questions, though! |
Thanks for the thoughtful and detailed answer! I do enjoy the As another heads-up, there was some discussion in Twitter as well, which I'd be curious to get your thoughts on: https://twitter.com/phry/status/1578687964682801153. Thanks for all your hard work on this package. I'm really excited about the prospect of using Testing Library methods in Playwright tests one way or another. I think it will be a powerful combination. |
@sebinsua any chance you have some good real-world example cases where you've been reaching for @IanVS I think this is what I'd recommend since it sounds like you're starting a fresh project:
Perhaps the future of this library is a lighter-weight version that simply fills that gap. In that case, I'd probably also open an issue upstream to see if we can just contribute it directly to Playwright. I suspect they may be reticent on account of this:
Either way I don't want to leave anyone hanging that did adopt this library in some form. I'm down to continue maintaining it in its current form and/or provide migration guidance. However, what we decide here will determine whether I will continue with 5.0 as I had originally planned. |
Here's a comparison table for the available queries. I think all of the missing Playwright query functionality can be accomplished via other APIs:
|
I am working on an approach where pluggable testing implementations run under Jest. From what I can see, Playwright's tests prevent this from happening. If I understand correctly, this library doesn't, so in that regard it is immeasurably more useful. |
@vid I'm curious — could you provide a bit more detail for your use case? Since Playwright shipped the native Testing Library queries in 1.27, I'm not planning on actively developing this library, but I do plan to continue to support it. |
I may be wrong, but on a cursory exploration I had the impression playwright's testing library could only be used in its own framework, it throws an exception if trying to use it under Jest. If I'm wrong, if I can use its testing method like any other method, no problem! |
I was wrong, the way I am using these function what Playwright offers suits my library. Sorry about the distraction! |
No worries :) |
I don't think anyone has mentioned the most important difference yet: I haven't done benchmarks, but this should be much slower (if anyone can share their experience with numbers that would be cool). I have opened an issue in Playwright precisely to solve this problem: |
Hi, I see that playwright has released an API very similar to testing-library in https://github.com/microsoft/playwright/releases/tag/v1.27.0. I'd like to get your take as maintainers of this library. Is there still something this library can offer over the native playwright API? If I'm deciding what to use on new playwright tests, what would you recommend? Thanks!
The text was updated successfully, but these errors were encountered: