NOTE: we should merge Pull Request 54 and 55 first.
This PR adds 2 functions to frameEnvironment/tab/hero:
magicSelector and magicSelectorAll
These functions on their own simply allow a user to provide a list of selectors and verify that a querySelector (or querySelectorAll) returns the same elements from the provided list of querySelectors.
When a magicSelector is encountered, an event is broadcast at a tab level (magic-selector/magic-selector-all) with the options provided. Those options can be manipulated if need by (eg, by Superhero) to provide a larger list of querySelectors to test, or to trigger UI changes in Superhero.
NOTE: we should merge Pull Request 54 and 55 first.
This PR adds 2 functions to frameEnvironment/tab/hero:
magicSelector and magicSelectorAll These functions on their own simply allow a user to provide a list of selectors and verify that a querySelector (or querySelectorAll) returns the same elements from the provided list of querySelectors.
When a magicSelector is encountered, an event is broadcast at a tab level (magic-selector/magic-selector-all) with the options provided. Those options can be manipulated if need by (eg, by Superhero) to provide a larger list of querySelectors to test, or to trigger UI changes in Superhero.