Success page (#13570)

feature/default_network_editable
VSaric 3 years ago committed by GitHub
parent 6b996a7979
commit a0602f1c0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      app/_locales/en/messages.json
  2. 4
      ui/pages/onboarding-flow/creation-successful/creation-successful.js
  3. 6
      ui/pages/onboarding-flow/creation-successful/creation-successful.test.js
  4. 4
      ui/pages/onboarding-flow/creation-successful/index.scss

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

@ -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>

@ -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);
});

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

Loading…
Cancel
Save