Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

element().query() returns a non-jQuery collection. #3232

@marcfallows

Description

@marcfallows

For the issue which was fixed (#1840), it seems like the commit (ec54712) has introduced a new issue.

If we are using jQuery for the scenario runner:

element(selector).query(function(selectedElements){
  // would expect this to pass
  expect(selectedElements instanceof jQuery).toBeTruthy();
  // but it fails
});

In this case if we use angular.forEach to iterate over the selectedElements it iterates over the length as well.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions