cypress-io / cypress

Fast, easy and reliable testing for anything that runs in a browser.
https://cypress.io
MIT License
46.75k stars 3.16k forks source link

Step Definition Missing Error while upgrading cypress version #27300

Closed hemanthbrane closed 1 year ago

hemanthbrane commented 1 year ago

Current behavior

We are migrating from cypress version 9.0 to 12.x.x, While upgrading we have encountered issue of step resolution missing for cucumber statements, the current directory where we are calling the step definition was attached below at the last.

Issue facing : Step definition missing error for cucumber statements(Feature files), Almost tried all the methods from internet

Directory: (^ level of descent from cypress directory)

cypress ^e2e ^^features ^^^A2A ^^^^firsttest.feature ^^step_definations ^^^login.js In package.json:

We have added step defination directory here in package.json

"cypress-cucumber-preprocessor": { "step_definitions": "cypress/e2e/step_definitions/**" }

In cypress.config.js:

we have declared spec in config file

e2e : {

specPattern: 'cypress/e2e/*/.feature'

}

Versions:

Cypress : 12.x.x NodeJs : 16.x.x Cucumber : 8.9.4

output.pdf

Desired behavior

1) Detailed Explanation of issue why it was happening

2) That error should be resolved

3) What are the other issue, we might find during upgrade

Test code to reproduce

As per company policy, we can't provide code but detailed explanation provided in current behaviour box

Cypress Version

12.3.0

Node version

v16.4.0

Operating System

linux

Debug Logs

No response

Other

No response

nagash77 commented 1 year ago

Hi @hemanthbrane right now there is not enough information for our engineers to reproduce this issue. Can you please provide a reproducible example in a fork of cypress-test-tiny that demonstrates the issue? Otherwise we will not be able to investigate further.

hemanthbrane commented 1 year ago

Hey,

It will be appreciable if anyone was able to connect with us to solve the issue, Please reply the available dates and timings, So that we will schedule a call.

Thanks and Regards Hemanth


From: Ben M @.> Sent: Friday, July 14, 2023 6:54 PM To: cypress-io/cypress @.> Cc: Vetcha Sri Datta Hemanth @.>; Mention @.> Subject: Re: [cypress-io/cypress] Step Definition Missing Error while upgrading cypress version (Issue #27300)

Hi @hemanthbranehttps://github.com/hemanthbrane right now there is not enough information for our engineers to reproduce this issue. Can you please provide a reproducible example in a fork of cypress-test-tinyhttps://github.com/cypress-io/cypress-test-tiny that demonstrates the issue? Otherwise we will not be able to investigate further.

— Reply to this email directly, view it on GitHubhttps://github.com/cypress-io/cypress/issues/27300#issuecomment-1635862348, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BBIRYC3LKWOA5LRHOLVCU4LXQFCAZANCNFSM6AAAAAA2J5UAV4. You are receiving this because you were mentioned.Message ID: @.***>

*CONFIDENTIALITY NOTICE***** The contents of this email message, and any attachments therein, are intended solely for the addressee(s). They may contain confidential and/or privileged information and may be legally protected from disclosure. If you are not the intended recipient of this message or their agent, or if this message has been addressed to you in error, please immediately alert the sender by replying to the email and then delete this message and any attachments. If you are not the intended recipient, you are hereby notified that any use, dissemination, copying, or storage of this message or its attachments, or taking any action on the basis of the contents of this information, is strictly prohibited. The integrity and security of this message cannot be guaranteed on the internet. The organization or the sender does not accept any liability for any damages caused by errors, omissions or virus transmission connected to the contents of this message.

nagash77 commented 1 year ago

Hi @hemanthbrane we do not offer synchronous support services for the open source repo at this time. If you are a paying customer please reach out to your account manager and they will be able to assist you. I would also suggest you check out the Cypress Discord Community Discord chat, it can be helpful for debugging or answering questions on how to use Cypress. I am going to close this issue at this time.