Skip to content

regex selector does not appear in cypress left panel #27

@euZebe

Description

@euZebe
  • cypress-testing-library version: 2.3.4
  • node version: 8.14.0
  • npm version: 6.5.0

Relevant code or config

    cy.queryByText(/basic/i).click(); // displays QUERYBYTEXT
    cy.queryByText("confirm").click(); // displays QUERYBYTEXT confirm

Problem description:
I guess this issue doesn't concern specifically a type of query, but rather its integration with cypress:
When using a regex to select any DOM element, I don't see the corresponding regex in the cypress panel, contrary to when I use a text selector.

querybytext-text vs regex

is it the expected behaviour? (Then why?)
Otherwise I would be delighted to try to fix the problem.

Suggested solution:
Display the stringified regex.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions