Skip to content

.attr matcher unexpected changes subject #65

Description

@SevenOutman

The following assertion with Chai .and chain should work

expect(container.firstChild)
  .to.have.attr('role', 'menubar')
  .and.to.have.attr('aria-orientation', 'vertical');

But it throws

TypeError: el.getAttribute is not a function

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions