fix(webdriverio): don't throw if tree to attach element couldn't be found, as it causes issues for component tests
This commit is contained in:
parent
a515cdf9ce
commit
b63166ae24
1 changed files with 1 additions and 1 deletions
|
|
@ -308,7 +308,7 @@ export class ShadowRootTree {
|
|||
if (typeof scope === 'string' && treeArg instanceof ShadowRootTree) {
|
||||
const tree = this.find(scope) || this.findByShadowId(scope)
|
||||
if (!tree) {
|
||||
throw new Error(`Couldn't find element with id ${scope}`)
|
||||
return
|
||||
}
|
||||
|
||||
tree.addShadowElement(treeArg)
|
||||
|
|
|
|||
Loading…
Reference in a new issue