Skip to content

v9.0.8

Choose a tag to compare

@shadowusr shadowusr released this 20 Jul 22:59
· 13 commits to master since this release

This release brings back XPath support in assertView, adds Shadow DOM and basically any element search method support to assertView. It also makes REPL mode preserve async local storage context.

🚀 Improvements

assertView can now work with any sort of complex selectors, including chained, for example:

await browser.$('.MyBlock').$('..').$('span*=Text').assertView('basic-state');

We've also fixed XPaths in assertView, so you can screenshot elements found by XPath selectors once again:

await browser.assertView('basic-state', '//footer[@data-testid="MyFooter"]');

Shadow DOM is supported as well — you can use deep >>> selectors to pierce through Shadow DOM:

await browser.$('>>>.label').assertView('my-element');

🐛 Bug fixes

REPL mode now preserves AsyncLocalStorage context. This means that if you run your tests inside ALS context, REPL mode will work fine with such cases too.