1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Success page (#13570)

This commit is contained in:
VSaric 2022-02-23 17:41:06 +01:00 committed by GitHub
parent 6b996a7979
commit a0602f1c0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 7 deletions

View File

@ -1350,6 +1350,9 @@
"goerli": { "goerli": {
"message": "Goerli Test Network" "message": "Goerli Test Network"
}, },
"gotIt": {
"message": "Got it!"
},
"grantedToWithColon": { "grantedToWithColon": {
"message": "Granted to:" "message": "Granted to:"
}, },

View File

@ -85,7 +85,7 @@ export default function CreationSuccessful() {
type="link" type="link"
rel="noopener noreferrer" rel="noopener noreferrer"
> >
{t('learnMore')} {t('learnMoreUpperCase')}
</Button> </Button>
</li> </li>
</ul> </ul>
@ -103,7 +103,7 @@ export default function CreationSuccessful() {
rounded rounded
onClick={onComplete} onClick={onComplete}
> >
{t('done')} {t('gotIt')}
</Button> </Button>
</Box> </Box>
</div> </div>

View File

@ -33,10 +33,10 @@ describe('Creation Successful Onboarding View', () => {
.mockReturnValue({ push: pushMock }); .mockReturnValue({ push: pushMock });
}); });
it('should call completeOnboarding in the background when "Done" button is clicked', () => { it('should call completeOnboarding in the background when "Got it!" button is clicked', () => {
const { getByText } = renderWithProvider(<CreationSuccessful />, store); const { getByText } = renderWithProvider(<CreationSuccessful />, store);
const doneButton = getByText('Done'); const gotItButton = getByText('Got it!');
fireEvent.click(doneButton); fireEvent.click(gotItButton);
expect(completeOnboardingStub).toHaveBeenCalledTimes(1); expect(completeOnboardingStub).toHaveBeenCalledTimes(1);
}); });

View File

@ -31,8 +31,8 @@
button { button {
margin-top: 14px; margin-top: 14px;
max-width: 60%; max-width: 280px;
padding: 18px 0; padding: 16px 0;
} }
} }
} }