Skip to content

Commit

Permalink
Add test steps for the issue: Opening particular onboarding pages fro…
Browse files Browse the repository at this point in the history
…m a link and going back
  • Loading branch information
WojtekBoman committed Nov 5, 2024
1 parent 6f65c7c commit b213f93
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
21 changes: 20 additions & 1 deletion contributingGuides/NAVIGATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -459,4 +459,23 @@ Linked issue: https://github.com/Expensify/App/pull/49539#issuecomment-243332160
4. Click Private notes.
5. Enter anything and click Save.
6. Click on the RHP back button.
7. Verify if the Profile RHP Page is opened (URL in the format /a/:accountID).
7. Verify if the Profile RHP Page is opened (URL in the format /a/:accountID).

#### Opening particular onboarding pages from a link and going back

Linked issue: https://github.com/Expensify/App/issues/50177

1. Sign in as a new user.
2. Select Something else from the onboarding flow.
3. Reopen/refresh the app.
4. Verify the Personal detail step is shown.
5. Go back.
6. Verify you are navigated back to the Purpose step.
7. Select Manage my team.
8. Choose the employee size.
9. Reopen/refresh the app.
10. Verify the connection integration step is shown.
11. Go back.
12. Verify you are navigated back to the employee size step.
13. Go back.
14. Verify you are navigated back to the Purpose step.
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ function getAdaptedState(state: PartialState<NavigationState<RootStackParamList>

const defaultFullScreenRoute = getDefaultFullScreenRoute(focusedRoute, policyID);

// The onboarding flow consists of several screens. If we open any of the screens, the previous screens from that flow should be in the state.
if (onboardingNavigator?.state) {
const adaptedOnboardingNavigator = {
...onboardingNavigator,
Expand Down

0 comments on commit b213f93

Please sign in to comment.