Skip to content
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

[v2] end-to-end testing? #4115

Open
tassa-yoniso-manasi-karoto opened this issue Mar 5, 2025 · 2 comments
Open

[v2] end-to-end testing? #4115

tassa-yoniso-manasi-karoto opened this issue Mar 5, 2025 · 2 comments

Comments

@tassa-yoniso-manasi-karoto

I was looking for ways to test my app and GPT suggested E2E testing:

End-to-end (E2E) testing is a methodology that verifies the full workflow of an application from the user's perspective. It simulates real user interactions—from launching the app and navigating through its interface to triggering backend processes—and checks that every component, including the communication between the frontend and the Go backend via the Wails runtime, functions as expected. This type of testing ensures that all layers of the application work together seamlessly, providing a holistic validation of the system's behavior.

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?

@tassa-yoniso-manasi-karoto tassa-yoniso-manasi-karoto changed the title end-to-end testing? [v2] end-to-end testing? Mar 5, 2025
@gerbil
Copy link

gerbil commented Mar 7, 2025

I got this covered by starting backend with cypress as e2e testing tool running from edge browser.

@tassa-yoniso-manasi-karoto
Copy link
Author

I got this covered by starting backend with cypress as e2e testing tool running from edge browser.

I hadn't heard about cypress, thanks. But this setup can't communicate with the go backend right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants