Skip to content

Commit

Permalink
move test rendered report action after setup
Browse files Browse the repository at this point in the history
  • Loading branch information
wildan-m committed Feb 6, 2025
1 parent 012e168 commit 4f06062
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/ReportActionItemSingleTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ describe('ReportActionItemSingle', () => {
};

function setup() {
LHNTestUtils.getDefaultRenderedReportActionItemSingle(shouldShowSubscriptAvatar, fakeReport, fakeReportAction);
const policyCollectionDataSet = toCollectionDataSet(ONYXKEYS.COLLECTION.POLICY, [fakePolicy], (item) => item.id);

return waitForBatchedUpdates().then(() =>
Expand All @@ -70,6 +69,7 @@ describe('ReportActionItemSingle', () => {
const expectedSecondaryIconTestId = 'SvgDefaultAvatar_w Icon';

await setup();
LHNTestUtils.getDefaultRenderedReportActionItemSingle(shouldShowSubscriptAvatar, fakeReport, fakeReportAction);
await waitFor(() => {
expect(screen.getByTestId(expectedSecondaryIconTestId)).toBeOnTheScreen();
});
Expand Down

0 comments on commit 4f06062

Please sign in to comment.