Closed port-eighty closed 1 year ago
Hi @port-eighty,
I cannot run the shared example because you didn't attach all necessary files. Could you please share all files from the ./Logger
folder?
@miherlosev I don't have a ./Logger folder.
If by chance you're asking what the contents of Logger.js is, then here it is:
const { RequestLogger } = require('testcafe')
module.exports = new RequestLogger(/api/, {
logRequestHeaders: true,
logRequestBody: true,
logResponseHeaders: true,
logResponseBody: true,
stringifyResponseBody: true,
})
This implementation is directly from : TestCafe Documentation - Define global hooks
Hi @port-eighty
Thank you for sharing the detailed information. I've reproduced the issue.
Release v3.0.0-rc.1 addresses this.
What is your Scenario?
After installing testcafe@latest (2.6.1) I started getting the error described by the title in my tests, I've reproduced it in a simple test file:
What is the Current behavior?
Getting unhandled promise rejection error
What is the Expected behavior?
Test should complete normally
What is your public website URL? (or attach your complete example)
www.google.com
What is your TestCafe test code?
Your complete configuration file
Your complete test report
Screenshots
No response
Steps to Reproduce
TestCafe version
2.6.1
Node.js version
16.15.0 and 19.8.1
Command-line arguments
testcafe chrome ./experiments2.js
Browser name(s) and version(s)
Chrome 113.0.0.0 / Windows 10
Platform(s) and version(s)
Windows 10
Other
Was trying to debug and replicate this error from another issue: