You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to test a dropdown component that opens up additional content when the button is clicked. The content is position: fixed, so in order for the screenshot to be correct I need to include the content as a capture element. The problem is that the first capture in the suite takes an image before the dropdown is open, so an error is thrown here
I think the simplest solution would be to treat all elements as optional, and continue the for loop instead of returning an error. Then after the loop, ensuring that there is some rectangle to capture, and throwing an error at that point if none of the elements were present.
I'm trying to test a dropdown component that opens up additional content when the button is clicked. The content is
position: fixed, so in order for the screenshot to be correct I need to include the content as a capture element. The problem is that the first capture in the suite takes an image before the dropdown is open, so an error is thrown hereI think the simplest solution would be to treat all elements as optional, and
continuethe for loop instead of returning an error. Then after the loop, ensuring that there is some rectangle to capture, and throwing an error at that point if none of the elements were present.Thoughts?