Open luacmartins opened 1 week ago
Triggered auto assignment to Contributor-plus team member for initial proposal review - @dukenv0307 (External
)
Triggered auto assignment to @zanyrenney (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.
We need to add automated tests for new API commands in Workspace Taxes page
This is new requirement, currently we don't have any automated tests for those commands
For each command, we need to:
Define the test scenarios for the command, this will be the different cases that the input params of the command function (for example this) can take. Eg. If a param is optional, we need to test both scenarios where that params is, and is not provided. And there should be the scenarios for different user's use cases as well, we can check this by testing the flow in the UI to see what possible values/actions they can take that influence the command input.
Write unit tests with those scenarios, given a set of command function input, we need to check that API.write
/API.read
are called with a correct set of parameters
and onyxData
(eg. this call).
For how to write it, we'll write Jest tests just like we did for other utils like here
NA
It's not a bug issue so we can assign @tienifr. BTW, we haven't set the price for that ticket yet @luacmartins
🎀👀🎀 C+ reviewed
Current assignee @luacmartins is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.
Job added to Upwork: https://www.upwork.com/jobs/~01aabb7c33e3cc9759
Current assignee @dukenv0307 is eligible for the External assigner, not assigning anyone new.
@dukenv0307 PR https://github.com/Expensify/App/pull/41059 is ready
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