Skip to content

Commit

Permalink
Add seedless google flow happy path tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mike10ca committed Nov 15, 2023
1 parent 9c71142 commit 8d238f7
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
6 changes: 4 additions & 2 deletions src/components/common/SocialSigner/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ export const SocialSigner = ({
<Box display="flex" flexDirection="column" gap={2} sx={{ width: '100%' }}>
{isSocialLogin && userInfo ? (
<Track {...CREATE_SAFE_EVENTS.CONTINUE_TO_CREATION}>
<Button data-testid="signed-in-account-btn"
<Button
data-testid="signed-in-account-btn"
variant="outlined"
sx={{ px: 2, py: 1, borderWidth: '1px !important' }}
onClick={onLogin}
Expand Down Expand Up @@ -146,7 +147,8 @@ export const SocialSigner = ({
</Track>
) : (
<Track {...MPC_WALLET_EVENTS.CONNECT_GOOGLE} label={isWelcomePage ? 'welcomePage' : 'navBar'}>
<Button data-testid="google-connect-btn"
<Button
data-testid="google-connect-btn"
variant="outlined"
onClick={login}
size="small"
Expand Down
19 changes: 16 additions & 3 deletions src/components/new-safe/create/steps/ReviewStep/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ export const NetworkFee = ({
<Typography fontWeight="bold">Free</Typography>
<Typography variant="body2">
Your account is sponsored by
<Image data-testid="sponsor-icon"
<Image
data-testid="sponsor-icon"
src={SPONSOR_LOGOS[chain?.chainId || '']}
alt={chain?.chainName || ''}
width={16}
Expand Down Expand Up @@ -248,10 +249,22 @@ const ReviewStep = ({ data, onSubmit, onBack, setStep }: StepRenderProps<NewSafe

<Box className={layoutCss.row}>
<Box display="flex" flexDirection="row" justifyContent="space-between" gap={3}>
<Button data-testid="review-step-back-btn" variant="outlined" size="small" onClick={handleBack} startIcon={<ArrowBackIcon fontSize="small" />}>
<Button
data-testid="review-step-back-btn"
variant="outlined"
size="small"
onClick={handleBack}
startIcon={<ArrowBackIcon fontSize="small" />}
>
Back
</Button>
<Button data-testid="review-step-next-btn" onClick={createSafe} variant="contained" size="stretched" disabled={isDisabled}>
<Button
data-testid="review-step-next-btn"
onClick={createSafe}
variant="contained"
size="stretched"
disabled={isDisabled}
>
Next
</Button>
</Box>
Expand Down
3 changes: 2 additions & 1 deletion src/components/safe-apps/SafeAppsInfoModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ const SafeAppsInfoModal = ({

return (
<Box display="flex" alignItems="center" justifyContent="center" flexDirection="column" height="calc(100vh - 52px)">
<Box data-testid="app-info-modal"
<Box
data-testid="app-info-modal"
sx={({ palette }) => ({
width: '450px',
backgroundColor: palette.background.paper,
Expand Down

0 comments on commit 8d238f7

Please sign in to comment.