mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-30 16:18:07 +01:00
925a19fa4a
This reverts commitf09ab88891
, reversing changes made toeffc761e0e
. This is being temporarily reverted to make it easier to release an urgent fix for v10.15.1.
35 lines
1.2 KiB
JavaScript
35 lines
1.2 KiB
JavaScript
import React from 'react';
|
|
import configureMockStore from 'redux-mock-store';
|
|
|
|
import {
|
|
renderWithProvider,
|
|
createSwapsMockStore,
|
|
} from '../../../../test/jest';
|
|
import GasCustomizationModalContainer from '.';
|
|
|
|
describe('GasCustomizationModalContainer', () => {
|
|
it('renders the component with initial props', () => {
|
|
const store = configureMockStore()(createSwapsMockStore());
|
|
const { getByText, getByTestId } = renderWithProvider(
|
|
<GasCustomizationModalContainer />,
|
|
store,
|
|
);
|
|
expect(getByTestId('page-container__header')).toMatchSnapshot();
|
|
expect(getByText('Basic')).toBeInTheDocument();
|
|
expect(getByText('Advanced')).toBeInTheDocument();
|
|
expect(getByText('Estimated Processing Times')).toBeInTheDocument();
|
|
expect(getByText('Send Amount')).toBeInTheDocument();
|
|
expect(getByText('Transaction fee')).toBeInTheDocument();
|
|
expect(
|
|
getByTestId('gas-modal-content__info-row__send-info'),
|
|
).toMatchSnapshot();
|
|
expect(
|
|
getByTestId('gas-modal-content__info-row__transaction-info'),
|
|
).toMatchSnapshot();
|
|
expect(
|
|
getByTestId('gas-modal-content__info-row__total-info'),
|
|
).toMatchSnapshot();
|
|
expect(getByText('Save')).toBeInTheDocument();
|
|
});
|
|
});
|