(text: string)
| 36 | describe('context function', () => { |
| 37 | describe('context is executed', () => { |
| 38 | async function findByText(text: string) { |
| 39 | const element = await screen.findByText(text) |
| 40 | expect(element).toBeInTheDocument() |
| 41 | } |
| 42 | |
| 43 | async function clickButton(name: string) { |
| 44 | const button = await screen.findByRole('button', { |