Nested Page Object `length` errors out
NicholasMohr opened this issue · 1 comments
NicholasMohr commented
I get an error whenever I call any function that calls length
on my nested page object. The page object works just fine other than being unable to call length (I can call eq(10)
on the page object, grab a field and interact with that nested page object)
> this.fields.length
jquery.js:1541 Uncaught Error: Syntax error, unrecognized expression: [data-test-beta-transaction-panel] scope(scope) {
return this.extend({ scope });
}
at Function.Sizzle.error (jquery.js:1541)
at Sizzle.tokenize (jquery.js:2193)
at Function.Sizzle [as find] (jquery.js:815)
at jQuery.fn.init.find (jquery.js:2873)
at new jQuery.fn.init (jquery.js:2988)
at jQuery (jquery.js:139)
at AcceptanceNativeEventsExecutionContext.$ (native-events-context.js:54)
at AcceptanceNativeEventsExecutionContext.find (native-events-context.js:91)
at executionContext.run.context (count.js:91)
at AcceptanceNativeEventsExecutionContext.run (native-events-context.js:19)
for my collection that looks like:
fields: collection(TransactionFieldPageObject.scope('[data-test-beta-transaction-value-editor]')),
NicholasMohr commented
turned out to be an issue of other dependencies causing my main app to use 0.4.6 despite me specifying in package.json that I needed 0.4.8 🤷♂️ looks like everything is fine once I manage to upgrade