-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
refactor(tests): move svg export visual tests to playwright #10575
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
Conversation
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
Build Stats
|
// eslint-disable-next-line @typescript-eslint/consistent-type-imports | ||
fabric: typeof import('fabric'), | ||
) { | ||
renderFunction: async function render(canvas, fabric) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
types are autoinfered now so there is no need to add the same type on every place
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all goldens are just moved which is evident in the commit
this is the only one I had to copy since one test in qunit still uses it so I had to make duplicate
I think this PR is fine. There would be some duplicated scaffolding maybe but can be resolved with a test builder. Ideas? |
if you look at the change closely you can already see that I made each visual test its own test you can observe this in master build and this build locally this is very fast What I wanted to do is also to add property to render test case interface like |
another remark I have is that this current playwright setup is too complex when vitest supports it natively I can bring it for discussion, prepare a POC and we can discuss that again |
Got a break i ll be back to this PR either tomorrow or wednesday |
No worries Andrea, tests will not run away, take your time |
@@ -7,46 +7,52 @@ import * as fabric from 'fabric/node'; | |||
|
|||
setup(); | |||
|
|||
test('VISUAL RENDERING TESTS', async ({ page }, config) => { | |||
test.describe('VISUAL RENDERING TESTS', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i see now what you meant with the number of tests
I ll convert some other visual tests to be sure i m comfortable with the process |
moves svg export visual tests to playwright