Repository navigation
feat(e2e): adding playwright and migrate landing page e2e tests - #51129
Conversation
|
👀 Review this PR in a CodeSee Review Map |
huyenltnguyen
left a comment
There was a problem hiding this comment.
Hey @Ahmadkashif, thank you for the contribution!
Would you mind pointing us to the GitHub issue or discussion regarding the addition of Playwright? Playwright is a great tool but we have been using Cypress for e2e tests, so I would like to understand more about the needs of Playwright and what gap it helps fill.
If we are adding Playwright to the codebase, we probably would need to have some documentation around:
- How to use Playwright (which command to run, how to configure the setup)
- How to write tests with Playwright
- When to use Cypress and when to use Playwright
|
Heya @huyenltnguyen, We've been discussing this internally. The biggest driver for moving to Playwright is the support for Webkit, which means we can run our E2E tests on Safari. |
|
Hi @huyenltnguyen, Maybe I can fill you in here.
This effort is part of a joint collaboration between FreeCodeCamp and Teamo to help build out a more robust and comprehensive testing suite.
The general idea here was to validate the utility of Playwright and be able to increase testing across devices and browsers. @raisedadead maybe you want to add more here.
I agree, that should be a part of the README I assume or do you think there is another place we can add this to?
The plan is to slowly pull out Cypress once we have rewritten all the tests. |
It would go in our contributing docs, most likely. They're found in the same repo, in the |
|
I think that about covers it, @hassaanp! |
|
Thank you all for the enlightenment! I am, as always, waaay out of the loop 😅 I've read about Playwright but haven't actually had a chance to work with it. Looking forward to the integration of it into the codebase! (I'll keep lurking and hopefully could help contribute something) |
|
Thank you everybody for the valuable insights. I'll be adding proper documentation for this integration. |
hassaanp
left a comment
There was a problem hiding this comment.
Left minor suggestions and some questions.
Co-authored-by: Hassaan Pasha <[email protected]>
raisedadead
left a comment
There was a problem hiding this comment.
This is looking good so far! Thanks, @hassaanp @Ahmadkashif and others from Teamo; you are all doing a great job.
We can improve the docs and the scope of the tests incrementally. This first PR can be about having all the bits and pieces in place.
Two things that should make the PR golden:
- Add a GitHub actions workflow file similar to what we have for our current setup. It can be merged as it is. Follow-up PRs will be a good test to see it in action.
- Please set up your development environment. We have recommendations in the contributing guide. That should fix the linting and formatting issues, I see.
Thanks, and keep up the good work!
…t-eslint/no-unsafe-assignment rule for playwright
|
Hi @ojeytonwilliams @raisedadead @hassaanp 👋 I have incorporated all requested changes. Please take a look and let me know about any further improvements. |
raisedadead
left a comment
There was a problem hiding this comment.
Adjusting to test this on the main repo
| paths-ignore: | ||
| - 'docs/**' | ||
| branches: | ||
| - 'main' |
There was a problem hiding this comment.
| - 'main' | |
| - 'main' | |
| - 'e2e-**' |
| - 'docs/**' | ||
| branches: | ||
| - 'main' | ||
| - 'next-**' |
There was a problem hiding this comment.
| - 'next-**' | |
| - 'next-**' | |
| - 'e2e-**' |
|
Thanks for your hard work @Ahmadkashif - this looks great to me. I am sure we have some nit-picks, but I have merged the PR to a dedicated branch on the fCC proper repo to enable running the tests in GitHub actions as a sanity check. Please continue the discussion in #51216 - I will likely land it today/tomorrow. |
|
sounds good. |

Checklist:
mainbranch of freeCodeCamp.Closes #XXXXX