Skip to content

Support for classes(), etc #139

Closed
Closed
@tim-hutchinson

Description

@tim-hutchinson

This came up in #118. We've found it easier to work with tests that use the assertion library's comparison functions, rather than the comparison functions like hasClass, hasProp, etc.

I'd like to propose adding helpers that are more like html() and text() that simply return a consumable form of the element feature requested. IE, classes() would return an array of class names on the element. I've got an implementation of classes and can submit a PR for it and others that make sense, but wanted to see if it made sense before going further.

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