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

[1508] Add Playwright for e2e testing #1535

Closed
wants to merge 13 commits into from

Conversation

seatuna
Copy link
Contributor

@seatuna seatuna commented Apr 10, 2024

Summary

Issue: #1508

This PR adds Playwright for e2e testing, a simple test for the MAPLE homepage, and resolves peer dependency issues related to testing and i18n packages. The following packages were upgraded:

  • jest
  • @types/jest
  • jest-environment-jsdom
  • i18n
  • next-i18next
  • react-i18next

Known issues

Updating jest to v29 introduced an error related to ESM imports for integration tests that touch firebase. To fix this, I had to add a custom resolver per this github thread: microsoft/accessibility-insights-web#5421 (comment)

I don't have firebase set up, so I couldn't check to make sure that the tests are actually passing. I just made sure that it was in the same state as when I ran the tests in the main branch. Someone with firebase set up should absolutely run the integration tests to make sure they're behaving as expected.

Copy link

vercel bot commented Apr 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
maple-dev ❌ Failed (Inspect) Apr 30, 2024 7:53pm

Comment on lines 10 to 14
constructor({ globalConfig, projectConfig }: ConfigTypes, context: any) {
super({ ...globalConfig,
projectConfig: {
...projectConfig,
globals: Object.assign({}, projectConfig.globals, {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jest v28 introduced a breaking change to the config object: https://jest-archive-august-2023.netlify.app/docs/28.x/upgrading-to-jest28/#test-environment

@seatuna
Copy link
Contributor Author

seatuna commented May 6, 2024

Closing this PR, I redid it here: #1554

@seatuna seatuna closed this May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant