You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cypress tests that require("gmail-tester") in support/index.js fail when executing a test, with the browser showing the following error
util.promisify is not a function
This error originated from your test code, not from Cypress.
When Cypress detects uncaught errors originating from your test code it will automatically fail the current test.
Cypress could not associate this error to any specific test.
We dynamically generated a new test to display this failure.
Check your console for the stack trace or click this message to see where it originated from.
View stack trace
Uncaught TypeError: util.promisify is not a function
This error originated from your test code, not from Cypress.
When Cypress detects uncaught errors originating from your test code it will automatically fail the current test.
Cypress could not associate this error to any specific test.
We dynamically generated a new test to display this failure.
Check your console for the stack trace or click this message to see where it originated from.
at Object.53../apirequest (http://localhost:4201/__cypress/tests?p=cypress/support/index.js-776:9871:23)
at o (http://localhost:4201/__cypress/tests?p=cypress/support/index.js-776:1:265)
at http://localhost:4201/__cypress/tests?p=cypress/support/index.js-776:1:316
at Object.55../apiIndex (http://localhost:4201/__cypress/tests?p=cypress/support/index.js-776:10147:19)
at o (http://localhost:4201/__cypress/tests?p=cypress/support/index.js-776:1:265)
at http://localhost:4201/__cypress/tests?p=cypress/support/index.js-776:1:316
at Object.73../v1 (http://localhost:4201/__cypress/tests?p=cypress/support/index.js-776:11812:29)
at o (http://localhost:4201/__cypress/tests?p=cypress/support/index.js-776:1:265)
at http://localhost:4201/__cypress/tests?p=cypress/support/index.js-776:1:316
at Object.318../abusiveexperiencereport (http://localhost:4201/__cypress/tests?p=cypress/support/index.js-776:200070:33)
If require("gmail-tester") is not added to the file, the issue is not present.
Investigating potential causes:
Opening chrome dev tools and following the error code link brings me to the following
Cypress Version 4.5.0
Happens both when cypress set to use 'system' (10.20.1) and builtin (12.13.0) nodejs versions (cypress.conf setting)
I'd really love some direction as to how to progress forward with this - I've tried different node versions, etc but nothing seems to get me any further!
The text was updated successfully, but these errors were encountered:
It turns out the issue was that require("gmail-tester") was executing outside of on("task", {...}); in the browser context rather than the node context.
Cypress tests that require("gmail-tester") in support/index.js fail when executing a test, with the browser showing the following error
If
require("gmail-tester")
is not added to the file, the issue is not present.Investigating potential causes:
Opening chrome dev tools and following the error code link brings me to the following
That led me down a rabbit hole to find that this issue may be related?
googleapis/google-api-nodejs-client#1775
System Information
npm -v
6.14.4
node -v
v10.20.1
OSX Catalina & Mojave
Cypress Version 4.5.0
Happens both when cypress set to use 'system' (10.20.1) and builtin (12.13.0) nodejs versions (cypress.conf setting)
I'd really love some direction as to how to progress forward with this - I've tried different node versions, etc but nothing seems to get me any further!
The text was updated successfully, but these errors were encountered: