Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(testing): re-add Puppeteer
asElement()
calls (#5114)
Fixes a regression caused by the removal of a few `asElement()` calls in 91cfa2c. Turns out these are necessary for the case where the handle is `null`. To avoid type errors, we cast the returned value to be of type `ElementHandle<Element>` rather than `ElementHandle<Node`. STENCIL-1032: `E2EPage.find()` throws error when using piercing selector targeting a non-existing element Fixes: #5113
- Loading branch information