Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
2.97k stars 2.48k forks source link

[$250] Create automated tests for Workspace Tags page #40836

Open luacmartins opened 1 week ago

luacmartins commented 1 week ago

Problem

New API commands introduced as part of the Simplified Collect project don't have automated tests, which can lead to bugs and unexpected behavior when these commands are updated.

Solution

Add automated tests for the commands below:

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01aeec6fe63684bff5
  • Upwork Job ID: 1783143522597269504
  • Last Price Increase: 2024-04-24
  • Automatic offers:
    • eh2077 | Reviewer | 0
    • nkdengineer | Contributor | 0
melvin-bot[bot] commented 1 week ago

Triggered auto assignment to Contributor-plus team member for initial proposal review - @eh2077 (External)

melvin-bot[bot] commented 1 week ago

Triggered auto assignment to @MitchExpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

Nodebrute commented 1 week ago

dibs

nkdengineer commented 1 week ago

Proposal

Please re-state the problem that we are trying to solve in this issue.

Create automated tests for Workspace Tags page

What is the root cause of that problem?

We don't have automation test for commands in Workspace Tags page

What changes do you think we should make in order to solve the problem?

  1. We can create a test in tests/actions for commands test like WorkspaceTagsTest
  2. When we write the test for each command
    • Call the function of the command with the necessary param. i.e. for SetPolicyRequiresTag we will call Policy.setPolicyRequiresTag function

What alternative solutions did you explore? (Optional)

NA

nkdengineer commented 1 week ago

Updated proposal to detail how can we define the test case.

eh2077 commented 1 week ago

@nkdengineer 's plan to add tests looks good to me.

🎀👀🎀 C+ reviewed

melvin-bot[bot] commented 1 week ago

Current assignee @luacmartins is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.

melvin-bot[bot] commented 1 week ago

Job added to Upwork: https://www.upwork.com/jobs/~01aeec6fe63684bff5

melvin-bot[bot] commented 1 week ago

Current assignee @eh2077 is eligible for the External assigner, not assigning anyone new.

melvin-bot[bot] commented 1 week ago

📣 @eh2077 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link Upwork job

melvin-bot[bot] commented 1 week ago

📣 @nkdengineer 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link Upwork job Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻 Keep in mind: Code of Conduct | Contributing 📖

nkdengineer commented 1 week ago

@eh2077 The PR is here.