Repository navigation
feat(e2e,playwright): created test file for donate-page-default.ts - #51723
anand-harsh wants to merge 2 commits into
Conversation
Added playwright test file for donate-page-default.ts
|
👀 Review this PR in a CodeSee Review Map |
There was a problem hiding this comment.
Hi @anand-harsh 👋
This is a solid attempt from your side 💪
However, I would suggest you take a look at our helper guides for making your first PR here at FCC and our best practices for how to write tests
To be a little more specific, just double check if you have named your commit messages accordingly and check if you have followed our guidelines on how do we suggest tests should be written.
This would make the PR golden.
Sure Sir, so I have to change commit name and handle repetitive codes? |
|
Yes @anand-harsh Yes, commit message with proper naming would be nice. Apart from the commit messages, take a look at how we suggest you to identify the original DOM element and how to test it, apparently you'll need to make some changes to your approach. |
Sure Sir, I will look into the issue and try my best to resolve it. |
|
Hey @Ahmadkashif, Thanks for updating the PR title. When merging a PR, We squash all commits, which means the PR title automatically becomes the commit message. So, the commit messages are only important in a fast-forward merge, which we do not do these days mostly. We can review the PR as is. |
|
@Ahmadkashif Sir, I have modified the code, can you please review the code and suggest if any changes are needed. |
|
Hello, Firstly, thank you for submitting this pull request! As you navigate the process, we have a PR checklist to ensure consistency and quality in our contributions. Please follow through with each point. This facilitates the review process and demonstrates mutual respect for the community's efforts. If you're unfamiliar with certain aspects, our contributing guidelines are a helpful resource to get you up to speed. Friendly Pointers (click to expand)
So that you know, there's no need to worry about closing this PR. Feel free to ask if you have questions or need guidance refining your contribution. Our community is here to assist. Thank you for being so enthusiastic in contributing to our project. We eagerly await more contributions from you! Happy Contributing! 🌟 |
raisedadead
left a comment
There was a problem hiding this comment.
Thanks for the PR. Please fix the linting. If you need help visit: contributors chat room
Note to maintainers: This PR has been made directly off of GitHub, and has never been tested locally.
There was a problem hiding this comment.
@anand-harsh, the test shouldn't be looking in the page for an element and its specific text.
You need to use getByTestId after adding the needed data-playwright-test-label. Ahmad mention how you can do this in this comment's link
|
ok Sir, I will make the proper changes and will update the PR. Thanks for helping me with this. |
|
@Ahmadkashif @Sboonny @raisedadead Sir, Kindly review the new PR #51768 which I have updated properly through Lint. |
|
Hey @anand-harsh, could we close this PR in favor of #51768? 🙂 |
yea sure |
|
Closing this PR in favor of #51768. |

Added playwright test file for donate-page-default.ts
Checklist:
mainbranch of freeCodeCamp.Solves #51705
Hacktober Fest PR