Skip to content

Commit

Permalink
Force onboarding test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson committed Mar 27, 2024
1 parent e21dbd7 commit d9f61fb
Showing 1 changed file with 68 additions and 65 deletions.
133 changes: 68 additions & 65 deletions src/containers/UserOnboardingContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,71 +69,74 @@ const UserOnboardingContainer: React.FC<Props> = ({ authService, bankAccountsSer
nextStep();
};

return (
<Dialog data-test="user-onboarding-dialog" fullScreen={fullScreen} open={dialogIsOpen}>
<DialogTitle data-test="user-onboarding-dialog-title">
{userOnboardingState.matches("stepOne") && "Get Started with Real World App"}
{userOnboardingState.matches("stepTwo") && "Create Bank Account"}
{userOnboardingState.matches("stepThree") && "Finished"}
</DialogTitle>
<DialogContent data-test="user-onboarding-dialog-content">
<Box display="flex" alignItems="center" justifyContent="center">
{userOnboardingState.matches("stepOne") && (
<>
<NavigatorIllustration />
<br />
<DialogContentText style={{ paddingLeft: 20 }}>
Real World App requires a Bank Account to perform transactions.
<br />
<br />
Click <b>Next</b> to begin setup of your Bank Account.
</DialogContentText>
</>
)}
{userOnboardingState.matches("stepTwo") && (
<BankAccountForm
userId={currentUser?.id!}
createBankAccount={createBankAccountWithNextStep}
onboarding
/>
)}
{userOnboardingState.matches("stepThree") && (
<>
<PersonalFinance />
<br />
<DialogContentText style={{ paddingLeft: 20 }}>
You're all set!
<br />
<br />
We're excited to have you aboard the Real World App!
</DialogContentText>
</>
)}
</Box>
</DialogContent>
<DialogActions>
<Grid container justify="space-between">
<Grid item>
<Button
style={{ paddingRight: "80%" }}
onClick={/* istanbul ignore next */ () => sendAuth("LOGOUT")}
color="secondary"
data-test="user-onboarding-logout"
>
Logout
</Button>
</Grid>
<Grid item>
{!userOnboardingState.matches("stepTwo") && (
<Button onClick={() => nextStep()} color="primary" data-test="user-onboarding-next">
{userOnboardingState.matches("stepThree") ? "Done" : "Next"}
</Button>
)}
</Grid>
</Grid>
</DialogActions>
</Dialog>
);
return null;


// return (
// <Dialog data-test="user-onboarding-dialog" fullScreen={fullScreen} open={dialogIsOpen}>
// <DialogTitle data-test="user-onboarding-dialog-title">
// {userOnboardingState.matches("stepOne") && "Get Started with Real World App"}
// {userOnboardingState.matches("stepTwo") && "Create Bank Account"}
// {userOnboardingState.matches("stepThree") && "Finished"}
// </DialogTitle>
// <DialogContent data-test="user-onboarding-dialog-content">
// <Box display="flex" alignItems="center" justifyContent="center">
// {userOnboardingState.matches("stepOne") && (
// <>
// <NavigatorIllustration />
// <br />
// <DialogContentText style={{ paddingLeft: 20 }}>
// Real World App requires a Bank Account to perform transactions.
// <br />
// <br />
// Click <b>Next</b> to begin setup of your Bank Account.
// </DialogContentText>
// </>
// )}
// {userOnboardingState.matches("stepTwo") && (
// <BankAccountForm
// userId={currentUser?.id!}
// createBankAccount={createBankAccountWithNextStep}
// onboarding
// />
// )}
// {userOnboardingState.matches("stepThree") && (
// <>
// <PersonalFinance />
// <br />
// <DialogContentText style={{ paddingLeft: 20 }}>
// You're all set!
// <br />
// <br />
// We're excited to have you aboard the Real World App!
// </DialogContentText>
// </>
// )}
// </Box>
// </DialogContent>
// <DialogActions>
// <Grid container justify="space-between">
// <Grid item>
// <Button
// style={{ paddingRight: "80%" }}
// onClick={/* istanbul ignore next */ () => sendAuth("LOGOUT")}
// color="secondary"
// data-test="user-onboarding-logout"
// >
// Logout
// </Button>
// </Grid>
// <Grid item>
// {!userOnboardingState.matches("stepTwo") && (
// <Button onClick={() => nextStep()} color="primary" data-test="user-onboarding-next">
// {userOnboardingState.matches("stepThree") ? "Done" : "Next"}
// </Button>
// )}
// </Grid>
// </Grid>
// </DialogActions>
// </Dialog>
// );
};

export default UserOnboardingContainer;

0 comments on commit d9f61fb

Please sign in to comment.