Yes
TypeError: crypto.randomFillSync is not a function
at module.exports (/var/lib/jenkins/jobs/automated-test/workspace/node_modules/nanoid/random.js:5:10)
at module.exports (/var/lib/jenkins/jobs/automated-test/workspace/node_modules/nanoid/index.js:24:15)
at new Role (/var/lib/jenkins/jobs/automated-test/workspace/node_modules/testcafe/src/role/index.js:19:22)
at createRole (/var/lib/jenkins/jobs/automated-test/workspace/node_modules/testcafe/src/role/index.js:85:12)
at Role (/var/lib/jenkins/jobs/automated-test/workspace/node_modules/testcafe/src/api/exportable-lib/index.js:10:12)
at Object.
at Object._compile [as .js] (/var/lib/jenkins/jobs/automated-test/workspace/node_modules/testcafe/src/compiler/test-file/api-based.js:84:25)
at Object.
at Function._compile [as _execAsModule] (/var/lib/jenkins/jobs/automated-test/workspace/node_modules/testcafe/src/compiler/test-file/api-based.js:50:13)
at ESNextTestFileCompiler._execAsModule [as compile] (/var/lib/jenkins/jobs/automated-test/workspace/node_modules/testcafe/src/compiler/test-file/api-based.js:144:42)
Testcafe working with browserstack
Tested page URL:
Test code
@Turkirafaa, please check the Node.js version on your Jenkins machine. I guess it's lesser than 7.10.0 - the version that introduced the crypto.randomFillSync function. By the way, it's a breaking change in the nanoid package,
@AndreyBelym Thank you so much for you'r quick response we update the Node.js version to v8.12.0
and it's working now.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests. For TestCafe API, usage and configuration inquiries, we recommend asking them on StackOverflow.
Most helpful comment
@Turkirafaa, please check the Node.js version on your Jenkins machine. I guess it's lesser than
7.10.0- the version that introduced the crypto.randomFillSync function. By the way, it's a breaking change in thenanoidpackage,