mbolotov / intellij-playwright

1 stars 0 forks source link

Does not work under Windows #13

Closed vekunz closed 1 year ago

vekunz commented 2 years ago

This plugin does not work if I try to use it under Windows. It creates this command:

"C:\Program Files\nodejs\npx.cmd" playwright test --reporter C:\Users\xxxx\AppData\Local\Temp\intellij-playwright-reporter13237922888003142249.js tests\create-folders.spec.ts

The problem is the tests\create-folders.spec.ts. The plugin must replace the \ with a / (or with \\, but just a / should be better).

mbolotov commented 2 years ago

Hi Veit! Which version of the plugin do you use? I don't recall any problems with the slash type, although I usually run the plugin under Windows.

I just tried to reproduce on my current working version and it works okay with the following command: "C:\Program Files\nodejs\npx.cmd" playwright test --reporter C:\Users\mbolotov\AppData\Local\Temp\intellij-playwright-reporter15252409861136933557.js tests\integration.spec.ts

Can you provide the error message or full console output?

vekunz commented 2 years ago

Hi, I have the version 1.1.2 of the plugin with WebStorm 2022.2.1. I use Node.js 16.17.0 (latest LTS). Playwright is version 1.25.1 (should be latest too).

If I execute a file, I get this this console output (if I execute a single test, it's basically the same):

"C:\Program Files\nodejs\npx.cmd" playwright test --reporter C:\Users\xxxx\AppData\Local\Temp\intellij-playwright-reporter13237922888003142249.js tests\create-folders.spec.ts

Running 0 tests using 0 workers

=================
 no tests found.
=================

If I copy the command in a cmd, I get the same error, but if I switch the \ to a /, it works.

mbolotov commented 2 years ago

Can you try this EAP plugin bundle? I've added the logic to switch the slash to / Maestro-1.2-EAP2.zip

vekunz commented 2 years ago

With this, everything works fine.

Doug-Bowen commented 1 year ago

This happens for me as well.

mbolotov commented 1 year ago

@Doug-Bowen, does the Maestro-1.2-EAP2 bundle work for you?

I'm planning to release a new version of the plugin including the fix for this issue in several days.

Doug-Bowen commented 1 year ago

Attempting to get the EAP bundle installed but struggling. Any idea where this should be stored? I'm on Windows.

mbolotov commented 1 year ago
  1. download it to any accessible place in the file system.
  2. install the plugin from the System settings: image

here the official docs: https://www.jetbrains.com/help/idea/managing-plugins.html#install_plugin_from_disk

Doug-Bowen commented 1 year ago

got it. works flawlessly

mbolotov commented 1 year ago

fixed in 1.2 version