Skip to content

preserveTexts (and likely hideElements) Does Not Error If Elements Not Found #2

@vkoves

Description

@vkoves

If you have some code like:

await I.dontSeeChanges('my-page', {
  preserveTexts: ['.potato', '.supp-info'],
  hideElements: ['.cooookie-popup'],
});

And those selectors are invalid, nothing will error, letting unexpected behaviors come through. I think these should throw errors since you're telling the visual testing layer to do something (hide an element or read and restore text in an element) that it cannot do.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions