(props = {})
| 25 | let onCloseModal!: jest.Mock; |
| 26 | |
| 27 | const createWrapper = (props = {}) => |
| 28 | render( |
| 29 | <Fragment> |
| 30 | <GlobalModal /> |
| 31 | <FeatureTourModal |
| 32 | steps={steps} |
| 33 | onAdvance={onAdvance} |
| 34 | onCloseModal={onCloseModal} |
| 35 | doneUrl="/done" |
| 36 | {...props} |
| 37 | > |
| 38 | {({showModal}) => ( |
| 39 | <a href="#" onClick={showModal} data-test-id="reveal"> |
| 40 | Open |
| 41 | </a> |
| 42 | )} |
| 43 | </FeatureTourModal> |
| 44 | </Fragment> |
| 45 | ); |
| 46 | |
| 47 | async function clickModal() { |
| 48 | await userEvent.click(screen.getByTestId('reveal')); |
no test coverage detected