@navinc/base-react-components
Version:
Nav's Pattern Library
19 lines (16 loc) • 521 B
JavaScript
import React from 'react'
import { render } from '@testing-library/react'
import WizardStep from './wizard-flow.js'
const WizardStepWithContent = () => (
<WizardStep imageFileName="vdf-AnnualRevenue.svg" headerCopy="Something" actionForm="something">
<form id="something" data-testid="testid">
<input />
</form>
</WizardStep>
)
describe('Wizard Step', () => {
it('should render a step', () => {
const { getByTestId } = render(<WizardStepWithContent />)
expect(getByTestId('testid'))
})
})