You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module.exports.assertion=function(selector,count,childSelector=null){this.message=`The number of children is not ${count}`;this.expected=count;this.pass=(value)=>value;this.value=(result)=>result;this.command=(cb)=>this.api.execute(`var element = document.querySelector("${selector}"); var childSelector = "${childSelector}"; if (childSelector) { return selector.querySelectorAll(childSelector).length; } return selector.children.length; `,[],({ value })=>cb(value));};
When attempting to use
elementHasChildrenCount
with a child selector, the value ofchild_selector
isundefined
inside theexecute()
function.Steps to recreate:
The issues comes when trying to select a deep child from a parent:
Then in your test, try the following:
The text was updated successfully, but these errors were encountered: