A Metamask fork with Infura removed and default networks editable
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ciphermask/ui/components/app/create-new-vault/create-new-vault.test.js

32 lines
999 B

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