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:
parent
6b996a7979
commit
a0602f1c0e
@ -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:"
|
||||||
},
|
},
|
||||||
|
@ -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>
|
||||||
|
@ -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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -31,8 +31,8 @@
|
|||||||
|
|
||||||
button {
|
button {
|
||||||
margin-top: 14px;
|
margin-top: 14px;
|
||||||
max-width: 60%;
|
max-width: 280px;
|
||||||
padding: 18px 0;
|
padding: 16px 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user