mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-01 21:57:06 +01:00
6e13524bcd
Co-authored-by: metamaskbot <metamaskbot@users.noreply.github.com> Co-authored-by: Brad Decker <bhdecker84@gmail.com> Co-authored-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
32 lines
999 B
JavaScript
32 lines
999 B
JavaScript
import React from 'react';
|
|
import { screen } from '@testing-library/react';
|
|
import { renderWithProvider } from '../../../../test/jest';
|
|
import configureStore from '../../../store/store';
|
|
import mockState from '../../../../test/data/mock-state.json';
|
|
import CreateNewVault from './create-new-vault';
|
|
|
|
const store = configureStore({
|
|
metamask: {
|
|
...mockState.metamask,
|
|
},
|
|
});
|
|
|
|
describe('CreateNewVault', () => {
|
|
it('renders CreateNewVault component and shows Secret Recovery Phrase text', () => {
|
|
renderWithProvider(<CreateNewVault submitText="Import" />, store);
|
|
expect(screen.getByText('Secret Recovery Phrase')).toBeInTheDocument();
|
|
});
|
|
|
|
it('renders CreateNewVault component and shows You can paste... text', () => {
|
|
renderWithProvider(
|
|
<CreateNewVault submitText="Import" includeTerms />,
|
|
store,
|
|
);
|
|
expect(
|
|
screen.getByText(
|
|
'You can paste your entire secret recovery phrase into any field',
|
|
),
|
|
).toBeInTheDocument();
|
|
});
|
|
});
|