Skip to content

Commit

Permalink
intro timeout to wait for animation
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoffrey Chong committed Aug 30, 2024
1 parent 08c96d4 commit 06c8dbc
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,11 @@ export const GenericNotificationTest: StickerSheetStory = {

await userEvent.click(canvas.getByTestId("close-button"))

setTimeout(() => {
expect(hiddenState).toHaveTextContent("Hidden")
}, 1000)

await waitFor(() => {
expect(element).not.toBeInTheDocument()
setTimeout(() => {
expect(hiddenState).toHaveTextContent("Hidden")
expect(element).not.toBeInTheDocument()
}, 1000)
})
},
}

0 comments on commit 06c8dbc

Please sign in to comment.