#Storybook testing

4 messages · Page 1 of 1 (latest)

wooden thicket
#

How would I assert that an element in not in the dom with a play function?
tried this:
expect(canvas.getAllByRole('link', {name: 'Test 1'}).count()).toEqual(0);
But, .get* seem to just error instead of returning an empty results.

sullen merlin
wooden thicket
#

Thank you!

#

Do I do anything to close this?