1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-04 23:14:56 +01:00
metamask-extension/ui/components/multichain/product-tour-popover/product-tour-popover.test.js
David Walsh e05aec8502
Fix #19830 - UX: Multichain test linting (#19792)
* Fix address-copy-button.test.js

* Fix connected-site-menu.js

* Fix app-header.test.js

* Fix product-tour-popover.test.js
2023-07-04 17:30:09 +05:30

32 lines
932 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',
closeMenu: jest.fn(),
};
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();
});
});