-
-
Notifications
You must be signed in to change notification settings - Fork 3.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
Fix most WebGL tests #7210
Fix most WebGL tests #7210
Conversation
That is the failure screenshot that are automatically generated but the image snapshot solution may work as well, you can have a test. There are some problems with having the test run properly in CI still and I may switch the provider from webdriverio to playwright but playwright does not support Chrome from vitest (uses Chromium instead) and the browser need to be installed with a separate command. Locally things seem to run fine so just need to solve CI. |
Ok I think I may have solve things on my end. Not sure if it made sense for you to merge this first then I'll rebase and merge mine or do it the other way round. @sproutleaf On a somewhat related note, when you are working on your code in the |
Sounds good, feel free to merge yours and I can rebase this one later as there's still some more debugging I have left to do on it anyway. Also maybe see if #7215 looks good to you and we can get that one in too. |
@davepagurek I'm in the process of marking tests that still need implementation to pass as |
I'm going to try to get the rest of these fixed tonight so maybe we can leave them as is for now, and I can mark any remaining WebGL ones? |
Yeah, I'll leave those. The FES ones @sproutleaf added isn't working for me as well so probably need some fixing too. I'll merge where it's at now. |
Fixing some more tests, some other little bug fixes I encountered:
|
Also, for tests that load images, I added |
Tests are all passing from earlier, just dealing with the test failures after merging dev-2.0 now! @limzykenneth I see that |
The hierachical relationship between p5.Element, p5.Renderer, p5.Graphics, p5.Image, the p5 instance/canvas etc are things we need to sort out as it is a bit too complex now. Will need to have a chat about this I think. |
@limzykenneth sounds good, let me know if you want to call for that at some point! For this PR, I think these are the remaining failing tests: I'm going to address visual tests separately, so I think this one is ready to go |
ok actually I got #7251 working so I'm just going to merge everything in |
To do:
fetch()
of relative paths is supported in vitest?)Also, some thoughts on screenshots: since it seems like vitest is able to save screenshots on test failures, I was reading this page https://vitest.dev/guide/snapshot#image-snapshots and they seem to have something like what we want from visual tests. Maybe this is worth using rather than the more custom saving/comparing code I had before?