Skip to content
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

Merged
merged 7 commits into from
Jul 25, 2022

Conversation

SgtPooki
Copy link
Member

@SgtPooki SgtPooki commented Jul 20, 2022

Potentially helps with #1981
Unblocks #1804

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
@SgtPooki SgtPooki self-assigned this Jul 20, 2022
@SgtPooki SgtPooki linked an issue Jul 20, 2022 that may be closed by this pull request
@SgtPooki SgtPooki temporarily deployed to Deploy July 20, 2022 19:15 Inactive
@SgtPooki SgtPooki requested a review from lidel July 20, 2022 19:34
@lidel lidel temporarily deployed to Deploy July 24, 2022 23:10 Inactive
@lidel lidel force-pushed the 1981-chore-install-missing-dependencies branch from bdbd601 to 4106886 Compare July 24, 2022 23:24
@lidel lidel temporarily deployed to Deploy July 24, 2022 23:28 Inactive
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.
@lidel lidel force-pushed the 1981-chore-install-missing-dependencies branch from 4106886 to bcaa612 Compare July 24, 2022 23:50
@lidel lidel temporarily deployed to Deploy July 24, 2022 23:55 Inactive
@lidel lidel changed the title chore: install missing dependencies refactor(test): switch e2e to @playwright/test Jul 25, 2022
@lidel lidel temporarily deployed to Deploy July 25, 2022 00:14 Inactive
Copy link
Member

@lidel lidel left a 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):

2022-07-25_02-00

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

@lidel lidel merged commit c40f0a1 into main Jul 25, 2022
@lidel lidel deleted the 1981-chore-install-missing-dependencies branch July 25, 2022 00:25
@ipfs-gui-bot
Copy link
Collaborator

🎉 This PR is included in version 2.18.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

chore: install missing dependencies
3 participants