Skip to content

Best pattern for checking for absence of Element #6560

Answered by sheremet-va
xenobytezero asked this question in Q&A
Discussion options

You must be logged in to vote

You can do something like this:

await expect.poll(() => page.getByTestId('path').query()).not.toBeInTheDocument()

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@xenobytezero
Comment options

@sheremet-va
Comment options

@xenobytezero
Comment options

@sheremet-va
Comment options

Answer selected by xenobytezero
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants