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

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

Closed
6 tasks
luacmartins opened this issue Apr 23, 2024 · 15 comments
Closed
6 tasks

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

luacmartins opened this issue Apr 23, 2024 · 15 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2

Comments

@luacmartins
Copy link
Contributor

luacmartins commented Apr 23, 2024

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:

  • Test SetPolicyRequiresTag
  • Test RenamePolicyTaglist
  • Test CreatePolicyTag
  • Test SetPolicyTagsEnabled
  • Test RenamePolicyTag
  • Test DeletePolicyTags
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
@luacmartins luacmartins added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Apr 23, 2024
@luacmartins luacmartins self-assigned this Apr 23, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 23, 2024
Copy link

melvin-bot bot commented Apr 23, 2024

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

Copy link

melvin-bot bot commented Apr 23, 2024

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
Copy link
Contributor

dibs

@nkdengineer
Copy link
Contributor

nkdengineer commented Apr 24, 2024

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

  • Build the test case based on all possible cases the input param of the function that will call the API command can have. After calling the API, get the updated data in Onyx and check if it's correct or not based on the expected output data with the given input param of the test case that we pass to the command function.

  • To write the test for API commands, we can do the same way in other tests like IOUTest

What alternative solutions did you explore? (Optional)

NA

@nkdengineer
Copy link
Contributor

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

@eh2077
Copy link
Contributor

eh2077 commented Apr 24, 2024

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

🎀👀🎀 C+ reviewed

Copy link

melvin-bot bot commented Apr 24, 2024

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

@luacmartins luacmartins added External Added to denote the issue can be worked on by a contributor and removed External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors labels Apr 24, 2024
Copy link

melvin-bot bot commented Apr 24, 2024

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

@melvin-bot melvin-bot bot changed the title Create automated tests for Workspace Tags page [$250] Create automated tests for Workspace Tags page Apr 24, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 24, 2024
Copy link

melvin-bot bot commented Apr 24, 2024

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

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 24, 2024
Copy link

melvin-bot bot commented Apr 24, 2024

📣 @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

Copy link

melvin-bot bot commented Apr 24, 2024

📣 @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 📖

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Apr 25, 2024
@nkdengineer
Copy link
Contributor

@eh2077 The PR is here.

@eh2077
Copy link
Contributor

eh2077 commented May 18, 2024

@MitchExpensify This is due for payment. I don't think we'll need checklist for this issue because we just added tests.

@MitchExpensify
Copy link
Contributor

Payment summary:

@MitchExpensify
Copy link
Contributor

Paid and contracts ended

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests

5 participants