Skip to content

feat(e2e,playwright): created test file for donate-page-default.ts - #51723

Closed
anand-harsh wants to merge 2 commits into
freeCodeCamp:mainfrom
anand-harsh:patch-1
Closed

anand-harsh wants to merge 2 commits into
freeCodeCamp:mainfrom
anand-harsh:patch-1

Conversation

@anand-harsh

@anand-harsh anand-harsh commented Oct 1, 2023 •

Copy link
Copy Markdown
Contributor

Added playwright test file for donate-page-default.ts

Checklist:

Solves #51705

Hacktober Fest PR

image

image

Added playwright test file for donate-page-default.ts
@anand-harsh
anand-harsh requested a review from a team October 1, 2023 05:46
@ghost

ghost commented Oct 1, 2023 •

Copy link
Copy Markdown

👀 Review this PR in a CodeSee Review Map

View the CodeSee Map of this change

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@Ahmadkashif Ahmadkashif changed the title fix(test): created test file for donate-page-default.ts feat(e2e,playwright): created test file for donate-page-default.ts Oct 1, 2023

@Ahmadkashif Ahmadkashif left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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.

@anand-harsh

anand-harsh commented Oct 1, 2023 •

Copy link
Copy Markdown
Contributor Author

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?

@Ahmadkashif

Ahmadkashif commented Oct 1, 2023 •

Copy link
Copy Markdown
Member

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.

@anand-harsh

Copy link
Copy Markdown
Contributor Author

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.

@huyenltnguyen huyenltnguyen added the status: waiting update Is awaiting update, after feedback or request for changes label Oct 1, 2023
@raisedadead

raisedadead commented Oct 1, 2023 •

Copy link
Copy Markdown
Member

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.

@raisedadead raisedadead added status: waiting review To be applied to PR's that are ready for QA, especially when additional review is pending. and removed status: waiting update Is awaiting update, after feedback or request for changes labels Oct 1, 2023
@anand-harsh

Copy link
Copy Markdown
Contributor Author

@Ahmadkashif Sir, I have modified the code, can you please review the code and suggest if any changes are needed.

@raisedadead

Copy link
Copy Markdown
Member

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)
  1. Editing on GitHub: While editing files directly on GitHub is possible, it's strongly discouraged. Please use the recommended setup. This helps avoid unintentional mistakes like typos that can disrupt tests.

  2. Linking Issues: Please ensure you link issues using the designated method. Simply update the XXXXXX in the PR description to include the issue number. This keeps our records organized and clear.

  3. Engaging with the Team: We know you're eager, but could you limit mentions and review requests? Our maintainers are always on the lookout and will attend to PRs in the order they come in.

  4. Branch Management: It's a good practice not to work directly off your main branch. Creating separate branches for different changes allows you to update your PR even as the central repository progresses smoothly.

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 raisedadead added status: waiting update Is awaiting update, after feedback or request for changes and removed status: waiting review To be applied to PR's that are ready for QA, especially when additional review is pending. labels Oct 2, 2023

@raisedadead raisedadead left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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.

Sboonny

This comment was marked as duplicate.

@Sboonny Sboonny left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@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

@anand-harsh

Copy link
Copy Markdown
Contributor Author

ok Sir, I will make the proper changes and will update the PR. Thanks for helping me with this.

@anand-harsh

anand-harsh commented Oct 2, 2023 •

Copy link
Copy Markdown
Contributor Author

@Ahmadkashif @Sboonny @raisedadead Sir, Kindly review the new PR #51768 which I have updated properly through Lint.

@huyenltnguyen

Copy link
Copy Markdown
Member

Hey @anand-harsh, could we close this PR in favor of #51768? 🙂

@anand-harsh

Copy link
Copy Markdown
Contributor Author

Hey @anand-harsh, could we close this PR in favor of #51768? 🙂

yea sure

@huyenltnguyen

Copy link
Copy Markdown
Member

Closing this PR in favor of #51768.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting update Is awaiting update, after feedback or request for changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants