-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Theoretically possible to test without packaging? #14
Comments
I'm looking for this as well |
@achtan theoretically yes, but if you need transpilation then no: microsoft/playwright#19854 (comment) |
It should be possible now to do Playwright testing without packaging the Electron application. This repository is just an example… and to be honest, most of the work has moved to the |
@jjeff thanks for the great work. Can you please elaborate more on this? I'm not really familiar with electron nor playwright. Thanks |
In Electron, you can run your application with a script (usually Playwright's Electron functionality defaults to testing the unpackaged application. This repository and the But if you're testing your unpackaged application, you can simply follow Playwright's example in their documentation. That's a good way to start. |
Hi @jjeff - I have similar requirement with Playwright, where need to launch .exe file on windows machine running on OpenFin server and need to access menus which will take to chrome ( chromium shell ). Will the implementation be similar as above ? Kindly suggest. |
The helper functions in the I don't know much about OpenFin and the configuration of Chromium that you're talking about. But if you're not loading Electron, you won't be able to test Electron's menus. Playwright should handle loading/running Electron though -- all of that is outside of the scope of this repository though. If you haven't already looked at the |
Thanks @jjeff . I haven't received the Openfin config yet. I will test it out with electron-playwright-helpers and reach out for help. This repo has given me idea on how the approach could be taken ahead. Thanks much for this contribution. |
Thanks for sharing your hard work! Is there any chance in the future that tests will be able to be run without first packaging the application?
The text was updated successfully, but these errors were encountered: