Skip to content
This repository was archived by the owner on Aug 15, 2023. It is now read-only.
This repository was archived by the owner on Aug 15, 2023. It is now read-only.

Can I check for multiple classes in an assert? #5

@KimberlyMunoz

Description

@KimberlyMunoz

So there's syntax for checking the class of selector. It's nifty and works like this:

                {
                    "selector": ".calendar-icon span",
                    "index": 0,
                    "value": "u-visually-hidden",
                    "assertion": "equal",
                    "attribute": "class"
                },

But if there's multiple classes, I can't figure out how to test. If I only do one like this, it'll fail.

               {
                   "selector": ".form-l_col",
                    "value": " form-l_col-1",
                    "assertion": "equal",
                    "attribute": "class"
                }

If I check for all the classes, it'll fail.

               {
                    "selector": ".form-l_col",
                    "value": "form-l_col form-l_col-1 form-l-inset",
                    "assertion": "equal",
                    "attribute": "class"
                }

Can we add some way to test for things with multiple classes?

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