Skip to content
This repository was archived by the owner on Sep 21, 2022. It is now read-only.
This repository was archived by the owner on Sep 21, 2022. It is now read-only.

Don't throw error if some capture elements are missing #231

@fenduru

Description

@fenduru

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.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions