Breadcrumb.test.jsx27 lines · main
| 1 | import { render, screen } from '@testing-library/react' |
| 2 | import React from 'react' |
| 3 | import { describe, expect, it } from 'vitest' |
| 4 | |
| 5 | import Breadcrumb from './Breadcrumb' |
| 6 | |
| 7 | describe('#Breadcrumb', () => { |
| 8 | it.skip('should render breadcrumb correctly', async () => { |
| 9 | render( |
| 10 | <Breadcrumb data-testid="breadcrumb"> |
| 11 | <p> Item 1 </p> |
| 12 | <p> Item 2 </p> |
| 13 | </Breadcrumb> |
| 14 | ) |
| 15 | expect(screen.queryByTestId('breadcrumb')).toBeInTheDocument() |
| 16 | }) |
| 17 | |
| 18 | it.skip('should have "breadcrumb--item" class', () => { |
| 19 | render( |
| 20 | <Breadcrumb data-testid="breadcrumb"> |
| 21 | <p> Item 1 </p> |
| 22 | <p> Item 2 </p> |
| 23 | </Breadcrumb> |
| 24 | ) |
| 25 | expect(screen.queryByTestId('breadcrumb')).toHaveClass('.sbui-breadcrumb--item ') |
| 26 | }) |
| 27 | }) |