badeball / cypress-cucumber-preprocessor

Run cucumber/gherkin-syntaxed specs with Cypress
MIT License
1.31k stars 144 forks source link

the tests tab on Azure devops pipeline report an issue with cypress cucumber preprocessor #1164

Closed parseh122 closed 4 months ago

parseh122 commented 4 months ago

Current behavior

From Node.js Internals: TypeError: state.messages.current.findLastIndex is not a function at testCaseStartedHandler (C:\agent\vsts-agent-win-x64-2.175.2_work\1391\s\node_modules\@badeball\cypress-cucumber-preprocessor\dist\plugin-event-handlers.js:390:69) at invoke (C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Cypress\Cache\13.6.6\Cypress\resources\app\node_modules\@packages\server\lib\plugins\child\run_plugins.js:248:16) at (C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Cypress\Cache\13.6.6\Cypress\resources\app\node_modules\@packages\server\lib\plugins\util.js:59:14) at tryCatcher (C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Cypress\Cache\13.6.6\Cypress\resources\app\node_modules\bluebird\js\release\util.js:16:23) at Function.Promise.attempt.Promise.try (C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Cypress\Cache\13.6.6\Cypress\resources\app\node_modules\bluebird\js\release\method.js:39:29) at Object.wrapChildPromise (C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Cypress\Cache\13.6.6\Cypress\resources\app\node_modules\@packages\server\lib\plugins\util.js:58:23) at RunPlugins.taskExecute (C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Cypress\Cache\13.6.6\Cypress\resources\app\node_modules\@packages\server\lib\plugins\child\run_plugins.js:254:10) at RunPlugins.execute (C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Cypress\Cache\13.6.6\Cypress\resources\app\node_modules\@packages\server\lib\plugins\child\run_plugins.js:166:21) at EventEmitter. (C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Cypress\Cache\13.6.6\Cypress\resources\app\node_modules\@packages\server\lib\plugins\child\run_plugins.js:56:12) at EventEmitter.emit (node:events:513:28) at EventEmitter.emit (node:domain:489:12) at process. (C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Cypress\Cache\13.6.6\Cypress\resources\app\node_modules\@packages\server\lib\plugins\util.js:33:22) at process.emit (node:events:513:28) at process.emit (node:domain:489:12) at process.emit.sharedData.processEmitHook.installedValue [as emit] (C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Cypress\Cache\13.6.6\Cypress\resources\app\node_modules\@cspotcode\source-map-support\source-map-support.js:745:40) at emit (node:internal/child_process:946:14) at processTicksAndRejections (node:internal/process/task_queues:84:21)]]>

](https://testing-yprimelogin.eclinicalcloud.net/__cypress/tests?p=cypress\e2e\orders\api-error-handling-upon-save-I\api-error-handling-upon-save-I.feature:14843:30)]]%3E%3C/failure%3E)

An error was thrown in your plugins file while executing the handler for the after:spec event.

The error we received was:

Error: Unexpected state in afterSpecHandler: has-reloaded-received-envelopes (this might be a bug, please report at https://github.com/badeball/cypress-cucumber-preprocessor) at createError (C:\agent\vsts-agent-win-x64-2.175.2_work\1391\s\node_modules\@badeball\cypress-cucumber-preprocessor\dist\helpers\error.js:9:12) at afterSpecHandler (C:\agent\vsts-agent-win-x64-2.175.2_work\1391\s\node_modules\@badeball\cypress-cucumber-preprocessor\dist\plugin-event-handlers.js:276:43) at processTicksAndRejections (node:internal/process/task_queues:96:5)

Desired behavior

No extra tests to be reported with "after each" hook issue telling Expected there to be a timestamp for current step (this might be a bug, please report at https://github.com/badeball/cypress-cucumber-preprocessor) Because this error occurred during a after each hook we are skipping the remaining tests in the current suite: - API error handling fo...

Test code to reproduce

Versions

Checklist

badeball commented 4 months ago

https://github.com/badeball/cypress-cucumber-preprocessor/blob/master/docs/faq.md