mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-25 20:02:58 +01:00
31 lines
906 B
JavaScript
31 lines
906 B
JavaScript
import React from 'react';
|
|
import { render } from '@testing-library/react';
|
|
|
|
import { ProductTour } from '.';
|
|
|
|
describe('DetectedTokensBanner', () => {
|
|
const props = {
|
|
title: 'Permissions',
|
|
description: 'Find your connected accounts and manage permissions here.',
|
|
currentStep: '1',
|
|
totalSteps: '3',
|
|
};
|
|
it('should render correctly', () => {
|
|
const { getByTestId } = render(
|
|
<ProductTour anchorElement={document.body} {...props} />,
|
|
);
|
|
const menuContainer = getByTestId('multichain-product-tour-menu-popover');
|
|
expect(menuContainer).toBeInTheDocument();
|
|
});
|
|
|
|
it('should render prev Icon', () => {
|
|
const { getByTestId } = render(
|
|
<ProductTour anchorElement={document.body} {...props} prevIcon />,
|
|
);
|
|
const prevIcon = getByTestId(
|
|
'multichain-product-tour-menu-popover-prevIcon',
|
|
);
|
|
expect(prevIcon).toBeInTheDocument();
|
|
});
|
|
});
|