Skip to content

Commit

Permalink
fix read report ui test
Browse files Browse the repository at this point in the history
  • Loading branch information
mkzie2 committed Dec 9, 2024
1 parent 0dc095e commit 8087720
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions tests/ui/LHNItemsPresence.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -329,20 +329,13 @@ describe('SidebarLinksData', () => {
// When the SidebarLinks are rendered.
LHNTestUtils.getDefaultRenderedSidebarLinks();
const report = createReport();
const reportAction = LHNTestUtils.getFakeReportAction();

// And a read report with a message is initialized in Onyx
// A read report is initialized in Onyx
await initializeState({
[`${ONYXKEYS.COLLECTION.REPORT}${report.reportID}`]: report,
});
await Onyx.merge(`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${report.reportID}`, {
[reportAction.reportActionID]: reportAction,
});

// This report should appear in the sidebar.
expect(getOptionRows()).toHaveLength(1);

// When we are in the focus mode
// And we are in the focus mode
await Onyx.merge(ONYXKEYS.NVP_PRIORITY_MODE, CONST.PRIORITY_MODE.GSD);

// This report should not appear in the sidebar.
Expand Down

0 comments on commit 8087720

Please sign in to comment.