playwright icon indicating copy to clipboard operation
playwright copied to clipboard

[Question] webpage not loading electron

Open 2BC-Wasabi opened this issue 2 years ago • 2 comments

hello there i have a project based on electron-react-boilerplate, when i try to run a simple test the webcontents doesn't load and i just have white screen.

i tried launching the main.js from release folder, from the app.asar after install.

also is there an option to launch it using the exe ? and how do i keep the window open after test is done?

2BC-Wasabi avatar Aug 08 '22 07:08 2BC-Wasabi

I created a PR to electron-react-boilerplate which demonstrates a basic integration, it was working for me!

https://github.com/electron-react-boilerplate/electron-react-boilerplate/pull/3284

Let us know what you do different.

mxschmitt avatar Aug 08 '22 09:08 mxschmitt

thank you very much, i'm my project is already in advanced stages where i use multiple windows, there are also some folders that i relay on that are not found in release/app/dist, i am wondering if it is possible to run the tests when using npm start.. for now i found a workaround and that is to just install the app and ignore the --inspect=0 flag at the start of the app

2BC-Wasabi avatar Aug 08 '22 09:08 2BC-Wasabi

Cool, since it's working I'm closing it for now, hopefully the upstream contribution into the boilerplate gets merged as well.

If you still encounter issues, please re-file with a repro.

mxschmitt avatar Aug 11 '22 21:08 mxschmitt