Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions tests/ui/components/IOURequestStepConfirmationPageTest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -528,9 +528,16 @@ describe('IOURequestStepConfirmationPageTest', () => {
await waitForBatchedUpdatesWithAct();
expect(screen.queryByText(translateLocal('common.error.fieldRequired'))).not.toBeOnTheScreen();

jest.mocked(getCurrentPosition).mockImplementationOnce(async (success) => {
success({
coords: {latitude: 40.7128, longitude: -74.006, altitude: null, accuracy: null, altitudeAccuracy: null, heading: null, speed: null},
timestamp: 0,
});
});
fireEvent.press(screen.getByText(translateLocal('iou.createExpense')));
await waitForBatchedUpdatesWithAct();
expect(screen.queryByText(translateLocal('common.error.fieldRequired'))).not.toBeOnTheScreen();
await waitFor(() => expect(TrackExpense.requestMoney).toHaveBeenCalledTimes(1));
});

it('drops the "Automatic" label from all three fields as soon as any one of them is entered', async () => {
Expand Down
Loading