cypress-grep icon indicating copy to clipboard operation
cypress-grep copied to clipboard

Cypress-greps does not work with tags which are Enum

Open thanhtuantran84 opened this issue 3 years ago • 4 comments

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?

thanhtuantran84 avatar Jun 29 '22 10:06 thanhtuantran84

@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

o3-steven avatar Jul 21 '22 15:07 o3-steven

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.

akosradler avatar Aug 05 '22 14:08 akosradler

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

praveenpandey02 avatar Aug 17 '22 15:08 praveenpandey02

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.

bahmutov avatar Aug 17 '22 15:08 bahmutov

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

jordanpowell88 avatar Oct 28 '22 19:10 jordanpowell88