Skip to content

Commit be68924

Browse files
committed
Revert IOU and onboarding test to main
1 parent 32d7ed1 commit be68924

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

src/libs/actions/IOU/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10302,15 +10302,19 @@ function retractReport(
1030210302
onyxMethod: Onyx.METHOD.MERGE,
1030310303
key: `${ONYXKEYS.COLLECTION.REPORT}${expenseReport.reportID}`,
1030410304
value: {
10305+
// @ts-expect-error - will be solved in https://github.com/Expensify/App/issues/73830
1030510306
stateNum: expenseReport.stateNum,
10307+
// @ts-expect-error - will be solved in https://github.com/Expensify/App/issues/73830
1030610308
statusNum: expenseReport.stateNum,
10309+
// @ts-expect-error - will be solved in https://github.com/Expensify/App/issues/73830
1030710310
hasReportBeenRetracted: false,
1030810311
nextStep: expenseReport.nextStep ?? null,
1030910312
pendingFields: {
10313+
// @ts-expect-error - will be solved in https://github.com/Expensify/App/issues/73830
1031010314
partial: null,
1031110315
nextStep: null,
1031210316
},
10313-
} as NullishDeep<OnyxTypes.Report>,
10317+
},
1031410318
},
1031510319
{
1031610320
onyxMethod: Onyx.METHOD.MERGE,

tests/ui/PersonalDetailsOnboarding.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,15 @@ describe('OnboardingPersonalDetails Page', () => {
102102
fireEvent.press(screen.getByText(TestHelper.translateLocal('common.continue')));
103103

104104
await waitFor(() => {
105-
expect(navigate).toHaveBeenCalledWith(ROUTES.ONBOARDING_PRIVATE_DOMAIN.getRoute(''));
105+
expect(navigate).toHaveBeenCalledWith(ROUTES.ONBOARDING_PRIVATE_DOMAIN.getRoute());
106106
});
107107

108108
unmount();
109109
await waitForBatchedUpdatesWithAct();
110110
});
111111

112112
it('should navigate to Onboarding workspaces page when submitting form and user is routed app via SMB with unvalidated account and private domain', async () => {
113-
await TestHelper.signInWithTestUser(1, fakeEmail);
113+
await TestHelper.signInWithTestUser();
114114

115115
// Setup account as private domain and has accessible policies
116116
await act(async () => {
@@ -133,7 +133,7 @@ describe('OnboardingPersonalDetails Page', () => {
133133
fireEvent.press(screen.getByText(TestHelper.translateLocal('common.continue')));
134134

135135
await waitFor(() => {
136-
expect(navigate).toHaveBeenCalledWith(ROUTES.ONBOARDING_WORKSPACES.getRoute(''));
136+
expect(navigate).toHaveBeenCalledWith(ROUTES.ONBOARDING_PRIVATE_DOMAIN.getRoute());
137137
});
138138

139139
unmount();

0 commit comments

Comments
 (0)