import React from 'react'; import { render, screen } from '../../../../jest/test-helpers'; import { Card, CardBody, CardHeader, CardTitle } from '../card'; describe('', () => { it('renders the CardTitle and CardBody', () => { render( Card Body , ); expect(screen.getByTestId('card-title')).toHaveTextContent('Card Title'); expect(screen.getByTestId('card-body')).toHaveTextContent('Card Body'); expect(screen.queryByTestId('back-button')).not.toBeInTheDocument(); }); it('renders the Back Button', () => { render( , ); expect(screen.getByTestId('back-button')).toBeInTheDocument(); }); });