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.
If you have some code like:
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.