mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-23 02:10:12 +01:00
0efd00b755
* adding product tour component * updated control for prevIcon * updated app-header and product tour * updated css * updated message strings * updated tests * removed console statement * added selector for product tour * updated test * updated test * updated state with steps * Update ui/components/multichain/product-tour-popover/product-tour-popover.js Co-authored-by: Garrett Bear <gwhisten@gmail.com> * Update ui/components/multichain/product-tour-popover/product-tour-popover.js Co-authored-by: Garrett Bear <gwhisten@gmail.com> * Update ui/components/multichain/product-tour-popover/product-tour-popover.js Co-authored-by: Garrett Bear <gwhisten@gmail.com> * Update ui/components/multichain/product-tour-popover/product-tour-popover.js Co-authored-by: Garrett Bear <gwhisten@gmail.com> * Update ui/components/multichain/product-tour-popover/product-tour-popover.js Co-authored-by: Garrett Bear <gwhisten@gmail.com> * Update ui/components/multichain/product-tour-popover/product-tour-popover.js Co-authored-by: Garrett Bear <gwhisten@gmail.com> * Update ui/components/multichain/product-tour-popover/product-tour-popover.js Co-authored-by: Garrett Bear <gwhisten@gmail.com> * Update ui/components/multichain/product-tour-popover/product-tour-popover.js Co-authored-by: Garrett Bear <gwhisten@gmail.com> * Update ui/components/multichain/product-tour-popover/product-tour-popover.js Co-authored-by: Garrett Bear <gwhisten@gmail.com> * Update ui/components/multichain/product-tour-popover/product-tour-popover.scss Co-authored-by: Garrett Bear <gwhisten@gmail.com> * fixed lint errors * updated lint error * added changes for rtl support * added changes for rtl support * fixed lint errors * Some suggestions (#18676) * updated messages and indentation * fixed popup close on my final step * updated rtl classname condition --------- Co-authored-by: Garrett Bear <gwhisten@gmail.com> Co-authored-by: George Marshall <george.marshall@consensys.net>
31 lines
927 B
JavaScript
31 lines
927 B
JavaScript
import React from 'react';
|
|
import { render } from '@testing-library/react';
|
|
|
|
import { ProductTour } from './product-tour-popover';
|
|
|
|
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();
|
|
});
|
|
});
|