-
Notifications
You must be signed in to change notification settings - Fork 37
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
Minitest integration #321
base: main
Are you sure you want to change the base?
Minitest integration #321
Conversation
don't fail if minitest not installed
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
Thanks! I tried this in my project, but I'm getting an error trying to create a Playwright instance: My code does this:
And I see this error:
|
I figured out what is going on, but not sure how to resolve. When I bundle the gem like The issue arises from the call in lib/playwright/playwright_api.rb, the method |
Part of the library is generated dynamically from an API specification and not included in the source code, which might be what you're seeing here. If you |
Indeed,
I changed that to
and now I'm getting a weird foreign key error in my database, that is triggered before that expectation even runs. If I comment out the new expectation, it passes just fine. It's as if adding the |
Was it that by any chance? |
I made sure to re-bundle and get the latest, but problem is still there. |
Nice work @alex-brook. I'm afraid I'm not going to have an opportunity to take it for a spin in time to give you immediate feedback, but I'm very pleased to see minitest assertions are on the way. 🚀 |
I'm using minitest-parallel_fork and there must be some race condition with the error from this test and the transaction rolling back. If I remove minitest-parallel_fork and just run the test, I get a more helpful error:
I didn't spend any time tracking that down yet. |
This PR allows Minitest users to use web first assertions via normal assertions or expectations
closes #309
@davekaro @gma I don't have access to a real app using Minitest at the moment, so I would appreciate you giving it a go and seeing if it works for you
I've left this in draft mode as I'm intending to also update the API documentation as part of this PR, but I might not be able to do that until next week
I've also included the devcontainer/docker setup I used to get the project running locally, which I thought might be useful for other contributors - but feel free to drop that commit if you don't want to include it