-
Notifications
You must be signed in to change notification settings - Fork 3k
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] Implement tests for reports that should not be displayed in LHN #52034
Comments
Triggered auto assignment to @alexpensify ( |
Moving to Weekly since we are on hold for App#52036 Heads up, I will be offline until Tuesday, November 12, 2024, and will not actively watch over this GitHub during that period. |
Still on hold for App#52036 |
On hold |
ProposalPlease re-state the problem that we are trying to solve in this issue.Implement tests for reports that should not be displayed in LHN. What is the root cause of that problem?This is the first time we're adding these tests. What changes do you think we should make in order to solve the problem?Example of 1 test for reference: it('should not display hidden report', async () => {
// When the SidebarLinks are rendered.
await LHNTestUtils.getDefaultRenderedSidebarLinks();
const report = createReport({isHidden: false});
// And a non-hidden report is initialized in Onyx.
await initializeState(false, {
[`${ONYXKEYS.COLLECTION.REPORT}${report.reportID}`]: report,
});
// Then the report should appear in the sidebar.
expect(getOptionRows()).toHaveLength(1);
// When the report is hidden.
await act(async () => {
await Onyx.merge(`${ONYXKEYS.COLLECTION.REPORT}${report.reportID}`, {isHidden: true});
});
// Then the report should not appear in the sidebar.
expect(getOptionRows()).toHaveLength(0);
}); A few more can be found on my test branch. It also includes fixes for console errors that appeared while running these tests, e.g. missing Todo: check not only for the count of reports but also validate the name, etc. |
@alexpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Job added to Upwork: https://www.upwork.com/jobs/~021862798689700375032 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @c3024 ( |
Yes external 🙌 Asking for the proposals in similar way as on this one #52032 |
Thanks! We are still looking for proposals here. |
@alexpensify @OlimpiaZurek @mountiny @c3024 this issue is now 4 weeks old, please consider:
Thanks! |
Edited by proposal-police: This proposal was edited at 2024-12-03 15:59:03 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Implement tests for reports that should not be displayed in LHN What is the root cause of that problem?This is a new feature What changes do you think we should make in order to solve the problem?
Line 6668 in 2c78c93
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?The implementation of this issue is adding the unit test What alternative solutions did you explore? (Optional) |
@c3024, when you get a chance, can you review if this new proposal will fix the issue? Thanks! |
@alexpensify, @OlimpiaZurek, @mountiny, @c3024 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Triggered auto assignment to @luacmartins, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @c3024 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @mkzie2 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@luacmartins happy to keep this one, I think you got assigned before I was out for christmas lunch |
@mkzie2 what is youer ETA for the PR? |
Will complete it today. |
Heads up, I will be offline until Wednesday, December 18, 2024, and will not actively watch over this GitHub during that period.If this GitHub requires an urgent update, please ask for help in the #expensify-open-source Slack Room. If the inquiry can wait, I'll review it when I return online. |
Weekly Update: PR is moving along through the review process |
Tracking issue: #52031.
Develop and implement tests to verify that the following report types are not displayed in the Left-Hand Navigation (LHN):
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: