Skip to content

Feature request: Support for testing v-bind() in scoped CSS? #1931

Closed
@oasjohn

Description

@oasjohn

PROBLEM
I'm utilizing v-bind() in scoped CSS classes, to apply style rules to component instances based on reactive properties. I'm able to use wrapper.classes('foo') to locate classes that have been applied, but cannot seem to find a way to write a test that verifies that the v-bind has properly applied the updated rules.

Is there a different approach I should be taking, or is there a way to parse the CSS class rules within test-utils without having to write something lower level?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions