Skip to content

Drilling into a node doesn't find by css class correctly if looking for the parent element of the component #11

@bopace

Description

@bopace

For a component structured as so:

<div className="my-class">
  ...
</div>

This test fails:

assert.ok(drill(subject).has('div', m.hasClass('my-class')))

But this test passes:

assert.ok(drill(subject).has(MyComponent, m.hasClass('my-class')))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions