Closed NullVoxPopuli closed 4 years ago
There is a buildSelector
exported from the root of "ember-cli-page-object" module. But it produces a JQuery selector, which I believe makes it unusable in "qunit-dom" once you use it with collections for example.
At the moment buildSelector
is not included in the types(sorry for inconvenience), cause I believe we should discourage users from using it. I think in most(all) cases having an element should cover user needs.
However, seems like people still need it to adjust integrations with external libs, so I don't think we should deprecate(which was my original intention) it soon. So, in case you find it useful to have typings for this, I'd gladly accept a PR!
closing, because ember-cli-page-object uses jQuery, and jQuery selectors aren't valid selectors to browsers.
Been thinking about what "integration" with qunit-dom would look like, and I think maybe something like:
is nice, but for
scope
, I know I'm just accessing the property onpage.something.nested
.It'd be nice if there was a way to also get the scope of the hierarchy. like,