Skip to content

[Feature]: Allow toHaveCSS() to receive stringContaining() as a second parameter #36209

Open
@BaneVredniMrav

Description

@BaneVredniMrav

🚀 Feature Request

Allow toHaveCSS to receive stringContaining() as a second parameter.

Example

Currently, this is an error when you provide stringContaining() as a second argument

Image

Motivation

Avoid using RegExp() unless it is necessary.

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