DevExpress / testcafe

A Node.js tool to automate end-to-end web testing.
https://testcafe.io
MIT License
9.82k stars 670 forks source link

Issues with testcafe Intellij plugin and proxyless #7547

Closed wombatka closed 1 year ago

wombatka commented 1 year ago

What is your Scenario?

After update to version 2.3.1 and adding "experimentalProxyless": "true", to my .testcaferc.json I face issues when running tests from intellij using testcafe intellij plugin (latest version)

TypeError: Cannot read property 'Fetch' of undefined at Proxyless.init (/home/asia/WAS/testCafe-was-gui-tests/node_modules/testcafe/src/proxyless/index.ts:44:28) at BrowserProviderPluginHost._setupProxyless (/home/asia/WAS/testCafe-was-gui-tests/node_modules/testcafe/src/browser/provider/built-in/dedicated/chrome/index.js:53:25) at processTicksAndRejections (node:internal/process/task_queues:96:5) at BrowserProviderPluginHost.openBrowser (/home/asia/WAS/testCafe-was-gui-tests/node_modules/testcafe/src/browser/provider/built-in/dedicated/chrome/index.js:96:13) at BrowserProvider.openBrowser (/home/asia/WAS/testCafe-was-gui-tests/node_modules/testcafe/src/browser/provider/index.ts:325:9) at BrowserConnection._runBrowser (/home/asia/WAS/testCafe-was-gui-tests/node_modules/testcafe/src/browser/connection/index.ts:267:13)

when try to run for the second time- test runs without issues

What is the Current behavior?

proxyless causes problems with running tests from intellij using testcafe intellij plugin

What is the Expected behavior?

There should be no issues with proxyless and intellij

What is your public website URL? (or attach your complete example)

no public url

What is your TestCafe test code?

just run any test from intellij

Your complete configuration file

.testcaferc.json

{ "screenshots": { "path": "testoutput/screenshots", "pathPattern": "${FIXTURE}/${TEST}${DATE}${TIME}${USERAGENT}${QUARANTINEATTEMPT}${FILE_INDEX}.png", "takeOnFails": true, "fullPage": true }, "assertionTimeout": 10000, "selectorTimeout": 3000, "skipJsErrors": true, "experimentalProxyless": "true", "reporter": [ { "name": "spec-time" }, { "name": "xunit", "output": "testoutput/reports/xunitreport.xml" } ] }

Your complete test report

No response

Screenshots

No response

Steps to Reproduce

1.run test from intellij with testcafe plugin 2. 3.

TestCafe version

2.3.1

Node.js version

16.7.0

Command-line arguments

no command- run with plugin

Browser name(s) and version(s)

Chrome 110.0.0.0 / Linux 0.0

Platform(s) and version(s)

Ubuntu 22.04.2 LTS

Other

No response

miherlosev commented 1 year ago

Hi @wombatka,

After update to version 2.3.1 and adding "experimentalProxyless": "true", to my .testcaferc.json I face issues when running tests from intellij using testcafe intellij plugin (latest version)

If the issue is reproduced without the IntelliJ plugin, please share an example that illustrates it. If the issue reproduced only with the IntelliJ plugin, address your feedback to the owner of this plugin.

github-actions[bot] commented 1 year ago

This issue was automatically closed because there was no response to our request for more information from the original author. Currently, we don't have enough information to take action. Please reach out to us if you find the necessary information and are able to share it. We are also eager to know if you resolved the issue on your own and can share your findings with everyone.