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
I found out that in windows path.join("http://devexpress.github.io") outputs '.\\http:\\devexpress.github.io' in unix based 'http:/devexpress.github.io'.
Maybe this causes the error as in "test-page-url.js" these lines seem to produce invalid urls:
function prepareBaseUrl(url) {
url = (0, path_1.join)(url, '/');
return isAbsolute(url) ? (0, url_1.pathToFileURL)(url) : new url_1.URL(url);
}
Just tried it with Node v21.7.3 in Windows and error is gone. This seems to be a Version specific behaviour of node...
We appreciate you taking the time to share information about this issue. We reproduced the bug and added this ticket to our internal task queue. We'll update this thread once we have news.
What is your Scenario?
I cannot start a test with a test.page method anymore.
What is the Current behavior?
An error gets thrown with:
ERROR Cannot prepare tests due to the following error:
TypeError: Invalid URL
at Object.
What is the Expected behavior?
The test starts
What is the public URL of the test page? (attach your complete example)
does not apply
What is your TestCafe test code?
Your complete configuration file
Your complete test report
testcafe chrome 'test.js'
ERROR Cannot prepare tests due to the following error:
TypeError: Invalid URL
at Object. (C:\Users\arhess.gitlab\testcafe\testcafe-uzh-kwf\temp\test.js:3:24)
Type "testcafe -h" for help.
Screenshots
The
t.testRun.test.baseUrl
entry also seems to be corrupted.Steps to Reproduce
TestCafe version
3.7.1
Node.js version
v20.18.2
Command-line arguments
testcafe chrome test.js
Browser name(s) and version(s)
Chrome 132.0.6834.84
Platform(s) and version(s)
Windows
Other
This problem might have occurred with a node update. Before, everything worked fine.
The text was updated successfully, but these errors were encountered: