Comments (4)
Note: this should be fixed in npm install -D @playwright/test@beta
.
from playwright.
I'm unfortunately not able to reproduce. I tried version 18 and latest 20, probably related to 5818707.
Which Node.js version are you using on CI? Or are you reproducing it locally?
Could you set the $Env:DEBUG="pw:browser,pw:protocol"
env var? This might yield more debug output when launching Electron with Playwright.
from playwright.
It appears to be actually a problem with space characters in the path, which would explain, why this didn't appear on my macOS.
Protocol of the last run:
D:\eigene dateien\devel\web\electron-playwright-issue [master ≡]> $Env:DEBUG="pw:browser,pw:protocol"
D:\eigene dateien\devel\web\electron-playwright-issue [master ≡]> npm test
> [email protected] test
> mocha --timeout 20000
Sample integration test
pw:browser <launching> D:\eigene dateien\devel\web\electron-playwright-issue\node_modules\electron\dist\electron.exe --inspect=0 --remote-debugging-port=0 D:\eigene dateien\devel\web\electron-playwright-issue\app\main.js +0ms
pw:browser <launched> pid=29208 +6ms
pw:browser [pid=29208][err] Der Befehl "D:\eigene" ist entweder falsch geschrieben oder +2ms
pw:browser [pid=29208][err] konnte nicht gefunden werden. +0ms
1) "before all" hook for "opens a window"
pw:browser [pid=29208] <process did exit: exitCode=1, signal=null> +3ms
pw:browser [pid=29208] starting temporary directories cleanup +0ms
2) "after all" hook for "opens a window"
0 passing (21ms)
2 failing
1) Sample integration test
"before all" hook for "opens a window":
electron.launch: Process failed to launch!
at async startApp (test\integration.spec.js:10:17)
at async Context.<anonymous> (test\integration.spec.js:26:39)
2) Sample integration test
"after all" hook for "opens a window":
TypeError: Cannot read properties of null (reading 'close')
at Context.<anonymous> (test\integration.spec.js:28:33)
at process.processImmediate (node:internal/timers:478:21)
at process.callbackTrampoline (node:internal/async_hooks:130:17)
pw:browser [pid=29208] finished temporary directories cleanup
The same project runs on a path without space characters just fine.
So, the regression is at handling space characters in the project's path.
from playwright.
Note: this should be fixed in
npm install -D @playwright/test@beta
.
I can confirm, that the bug is fixed with version 1.44.1.
from playwright.
Related Issues (20)
- [Question]: Is there a way to stop generating .last-run.json file after test execution?
- [Bug]: Chromium with codegen crashes on Mac M1 signal 10 BUS_ADRALN HOT 6
- [Bug]: Downloading to a specific location was working before the Chrome update, but now it's showing a download popup. HOT 3
- [Feature]: Adding retries support for .net HOT 1
- [Feature]: Add a way to specify `installInstruction` alongside `executablePath` HOT 2
- [Bug]: My codegen do not shows the add assertion or rec menu HOT 2
- [Feature]: Toggled to set cwd as from workspace folder or from config folder for vscode extension HOT 2
- [Feature]: Dynamic load balancing - reallocate unstarted tests from busy workers to idle ones. HOT 2
- [Feature]: Show test steps in vscode extension test tree HOT 1
- [Bug]: TypeError: Cannot read properties of undefined (reading 'locator') HOT 1
- [Bug]: Playwright VSCODE extension is not displayed HOT 9
- [Feature]: Multi-select tests in VS code extension HOT 1
- [Bug]: Incorrect font rendering by Chromium, Firefox, Webkit and Microsoft Edge on Ubuntu HOT 6
- How to delete cookies for Electron Application? HOT 3
- [Bug]: CodeceptJS - Jenkins : Can not load config from codecept.conf.js HOT 2
- [Bug]: testInfo.config.grep does not correspond to the CLI grep argument HOT 1
- Subfolders are not recognized in testDir configuration and thus test files are not found HOT 2
- [Feature]: Export the .toHaveScreenshot options types
- [Bug]: Method browserContext.clearCookies() returns undefined and doesn't clear cookies for Electron Application HOT 2
- [Feature]: Support accessibility testing for components HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from playwright.