Skip to content

Selecting by class name in unit testsΒ #244

@dan-searle

Description

@dan-searle

Because CSS modules are used for x-dash components, the built CSS class names are unpredictable, and so can't (easily) by used as selectors in unit tests, and this is quite limiting.

A couple of possible solutions:

  1. Turn off class renaming in the build used by the unit tests
  2. Support importing of the built css and accessing the generated class names (via classnames?) in the test files

Option 2 would get my vote.

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