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": {
"message": "Goerli Test Network"
},
"gotIt": {
"message": "Got it!"
},
"grantedToWithColon": {
"message": "Granted to:"
},

View File

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

View File

@ -33,10 +33,10 @@ describe('Creation Successful Onboarding View', () => {
.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 doneButton = getByText('Done');
fireEvent.click(doneButton);
const gotItButton = getByText('Got it!');
fireEvent.click(gotItButton);
expect(completeOnboardingStub).toHaveBeenCalledTimes(1);
});

View File

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