mbolotov / intellij-cypress

IntelliJ-Cypress plugin: https://plugins.jetbrains.com/plugin/13819-intellij-cypress Pro version: https://plugins.jetbrains.com/plugin/13987-cypress-support-pro
MIT License
35 stars 5 forks source link

Unable to use the plugin with Pycharm #128

Open Formartha opened 1 week ago

Formartha commented 1 week ago

After installing the plugin alongside with Test Automation plugin (by Jetbrains) the plugin is unable to lock the option of the IDE to trigger testcases with Intellij-cypress.

I tried removing, uninstalling, reinstalling, disabiling both plugins without luck. as if the 'default test runner' is locked to Test Automation even when it's not there.

I would kindly ask for help in this situation, as one of our workstations does't have the same issue and one does.

mbolotov commented 1 week ago

Hi Mor, what version of IDE are you using? both, please, where it works and where it doesn’t.

Formartha commented 1 week ago

Hi @mbolotov , It works on 23.2.4 but not on 24.1.3 AFAIK.

mbolotov commented 1 week ago

Cypress Support-1.7.0-EAP2.zip @Formartha you can try this bundle and select the following checkbox in the settings: image

Formartha commented 1 week ago

@mbolotov , Thanks! Now it recognize the tests as "moca" tests, any idea what to do next?

mbolotov commented 1 week ago

Unfortunately, I cannot reproduce the new problem. Could you try this bundle? Cypress Support-1.7.0-EAP3.zip

Formartha commented 6 days ago

@mbolotov can you please re-upload the file?

mbolotov commented 6 days ago

@mbolotov can you please re-upload the file?

done

Formartha commented 6 days ago

@mbolotov we got some progress, now it finds it as playwright file. image

I have already tried to reinstall pycharm and deleted all the content of the cached data from my mac. and also tried using intelij tools to reinstall older version as well, without luck.

mbolotov commented 6 days ago

could you share the screenshot of a created run configuration?

Formartha commented 6 days ago

I think it might be the way that pycharm finds the modules and attaches it to the IDE.

this is the package-json

{ "name": "ui_tests", "version": "1.0.0", "description": "Cypress tests", "main": "index.ts", "scripts": { "cy:open": "cypress open", "cy:run": "cypress run" }, "author": "Limor Amir", "license": "ISC", "dependencies": { "@types/decompress": "^4.2.7", "cypress-multi-reporters": "^1.6.4", "decompress-zip": "^0.3.3", "fs": "^0.0.1-security", "he": "^1.2.0", "junit": "^1.4.9", "mocha": "^10.2.0", "mochawesome": "^7.1.3", "mochawesome-junit-reporter": "^1.1.0", "mochawesome-merge": "^4.3.0", "mochawesome-report-generator": "^6.2.0", "neat-csv": "^5.2.0", "path": "^0.12.7", "typescript": "^4.5.1" }, "devDependencies": { "@types/node": "^18.15.11", "@types/pdf-parse": "^1.1.1", "cy-verify-downloads": "^0.1.14", "cypress": "13.5.1", "cypress-file-upload": "^5.0.8", "decompress": "^4.2.1", "pdf-parse": "^1.1.1" } }

If reinstall the node using npm ci command, it switches the Pycharm to use mocha. if I remove the mocha, it uses the playwright config.

as for the config: image

when I try to run it without the IDE to discover the testing utility I get this: image

mbolotov commented 6 days ago

I meant a screenshot of a run configuration when it's created as a playwright one