DevExpress / testcafe-browser-provider-electron

This is the Electron browser provider plugin for TestCafe.
https://testcafe.io
MIT License
49 stars 30 forks source link

Cannot debug an Electron application with TestCafe #81

Closed vsaetton closed 3 years ago

vsaetton commented 3 years ago

Description:

We are trying to debug an Electron application with TestCafe Since the upgrade to Electron 11.2.0 and testcafe-browser-provider-electron 0.0.16 we cannot do that anymore.

Issue:

We are not able to debug the application using VSCode.

Error:

image

Tested in:

Electron 8.3.3 - testcafe 1.8.1 - provider 0.0.14: The e2e run as expected and I was able to debug with vscode (electron and chrome) with no errors

Electron 8.3.3 - testcafe 1.8.1 - provider 0.0.16: The e2e run as expected and I was able to debug with vscode (electron and chrome) with no errors

Electron 8.3.3 - testcafe 1.13.0 - provider 0.0.16: The e2e run as expected and I was able to debug with vscode (electron and chrome) with no errors

Electron 11.2.0- testcafe 1.13.0- provider 0.0.16: The debugger works with chrome but does not work with electron

Electron 12.0.1- testcafe 1.13.0- provider 0.0.16: The debugger works with chrome but does not work with electron

Questions:

These are the current config for our test: Dependencies:

"electron": "11.2.0"
"electron-builder": "20.31.2"
"testcafe": "1.13.0"
"testcafe-browser-provider-electron": "0.0.16"

launch.json:

{
 "type": "node",
 "request": "launch",
 "name": "Run E2E tests on Electron",
 "program": "${workspaceFolder}/node_modules/testcafe/bin/testcafe.js",
 "env": {
 "NODE_ENV": "sample_value",
 },
 "args": [
 "electron",
 "components/***.ts",
 "tests/common/**/*.ts",
 "tests/performance/common/**/*.ts",
 "--reporter-app-name=Debug-E2E-UI",
 "--reporter-app-version=0.0.0",
 ],
 "cwd": "${workspaceFolder}/projects/e2e-ui",
}
Farfurix commented 3 years ago

@vicentesaettone09

Hello,

I reproduced the connection issue in our tests after updating the repository dependencies.

We found this error related to this topic: #59, should we wait for a provider update?

It looks like a similar issue. Yes, you need to wait until the #59 issue is resolved. So, I will close this issue as a duplicate.

We have pending an electron 12 update, this error is going to be kept in that version?

We haven't tested Electron v12 yet. The last version we tested was v11.0.3.