-
Notifications
You must be signed in to change notification settings - Fork 490
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
refactor(test): switch e2e to @playwright/test #1983
Conversation
The below error was happening for almost every single file on `npm run build`: Line 0: Parsing error: require() of ES Module /Users/sgtpooki/code/work/protocol.ai/ipfs/webui/node_modules/eslint/node_modules/eslint-scope/lib/definition.js from /Users/sgtpooki/code/work/protocol.ai/ipfs/webui/node_modules/babel-eslint/lib/require-from-eslint.js not supported. Instead change the require of definition.js in /Users/sgtpooki/code/work/protocol.ai/ipfs/webui/node_modules/babel-eslint/lib/require-from-eslint.js to a dynamic import() which is available in all CommonJS modules
bdbd601
to
4106886
Compare
This removes deprecated jest-playwright which caused issues with latest dependencies. E2E are now pure playwright, which reduces the surface for bugs and should be more stable and easier to maintain in general.
4106886
to
bcaa612
Compare
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 took a stab at fixing E2E tests in this PR and ended up removing jest-playwright and replacing it with @playwright/test (we did something similar in ipfs-desktop a while ago):
It simplified things a lot, and restored CID to be green again.
Updated the title to this PR to reflect the change, and decouple it from #1981
🎉 This PR is included in version 2.18.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Potentially helps with #1981
Unblocks #1804