Skip to content

Commit

Permalink
await all test steps
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Oct 16, 2024
1 parent a9a4012 commit 1480382
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const user = userEvent.setup()

import './index.tsx'

testStep('Error boundary is rendered after form submission', async () => {
await testStep('Error boundary is rendered after form submission', async () => {
// submit the form
await user.click(await screen.findByRole('button', { name: /submit/i }))

Expand Down
4 changes: 2 additions & 2 deletions exercises/09.errors/03.solution.reset/error-boundary.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const user = userEvent.setup()

import './index.tsx'

testStep('Error boundary is rendered after form submission', async () => {
await testStep('Error boundary is rendered after form submission', async () => {
// submit the form
await user.click(await screen.findByRole('button', { name: /submit/i }))

Expand All @@ -24,7 +24,7 @@ testStep('Error boundary is rendered after form submission', async () => {
expect(form).toBeNull()
})

testStep('Clicking "Try again" resets the error boundary', async () => {
await testStep('Clicking "Try again" resets the error boundary', async () => {
// Click the "Try again" button
const tryAgainButton = await screen.findByRole('button', {
name: /try again/i,
Expand Down

0 comments on commit 1480382

Please sign in to comment.