cypress-io / cypress-grep

Filter tests using substring
137 stars 19 forks source link

Cypress-greps does not work with tags which are Enum #131

Closed thanhtuantran84 closed 1 year ago

thanhtuantran84 commented 2 years ago

Hi, It seems to me that cypress-grep does not work when I define test scenarios using enum like below describe("Test1", () => { it( "Test1 successful", { tags: [TestGroup.E2E, TestGroup.SMOKE] }, () => { cy.get(".abc").should("exist"); }, ); }); Do we have the plan to support it?

o3-steven commented 2 years ago

@thanhtuantran84 you want to show a minimal reproducible example for this? I might take some time and look into it. I can confirm this issue will not work with any variable as well

akosradler commented 2 years ago

Hello, as I am experiencing the same issue: it seems to only fail when there are enums in an array. If it was a single tag, the tag would get recognized.

praveenpandey02 commented 2 years ago

Is there any update on this? looks like a lot of people are having this issue.

bahmutov commented 2 years ago

The tags / enums that are dynamic (meaning their value cannot be determined easily by looking at the spec file) are not supported by this plug-in. If you have any idea how to implement it I’m open to an idea of course

Sent from my iPhone

On Aug 17, 2022, at 11:35, Praveen @.***> wrote:

 Is there any update on this? looks like a lot of people are having this issue.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

jordanpowell88 commented 1 year ago

We are in the process of deprecating this repo as this package has been republished under @cypress/grep and has moved to https://github.com/cypress-io/cypress/tree/develop/npm/grep. I'm going to go ahead and close this issue as it appears stale. If this is still an issue, please open a new issue here