[v2] end-to-end testing? #4205
Replies: 7 comments 3 replies
-
|
I got this covered by starting backend with cypress as e2e testing tool running from edge browser. |
Beta Was this translation helpful? Give feedback.
-
I hadn't heard about cypress, thanks. But this setup can't communicate with the go backend right? |
Beta Was this translation helpful? Give feedback.
-
|
Yeap, thats only for frontend part |
Beta Was this translation helpful? Give feedback.
-
|
When you run wails in dev mode, you can access the full app (backend bindings included) from within a web browser which would allow you to perform e2e testing with a tool like Cypress.
|
Beta Was this translation helpful? Give feedback.
-
|
I assume we can use |
Beta Was this translation helpful? Give feedback.
-
|
Yeap, but thats only web testing.. i think; how we can test wails app features? |
Beta Was this translation helpful? Give feedback.
-
|
For the given instructions, when running the `pnpm create playwright`
command, a configuration will be automatically created and you will be
prompted to automatically download a version of chrome.
This should be enough to get you up and running.
…On Fri, 25 Jul 2025, 06:53 No-Cash-7970, ***@***.***> wrote:
@symball <https://github.com/symball> What browser(s) do you use for
Playwright? Can you post an example playwright.config.js?
—
Reply to this email directly, view it on GitHub
<#4205 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACRB4GP5NXZJ75OOOZNYYKD3KFPYLAVCNFSM6AAAAACBXK5E26VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGOBYGMYDIMQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I was looking for ways to test my app and GPT suggested E2E testing:
But after further consideration I realized I can't use the frontend's developement localhost address in a browser because it isn't connected to the backend functionality.
Come to think about it, using go-rod in dev builds to control the browser could be a basis for these tests, but go-rod need a WebSocket URL for chromium devtools, and I'm not sure if Edge Webview can provide one.
Any insights on this?
Beta Was this translation helpful? Give feedback.
All reactions