Feature description
Writing Playwright tests for Alby integration with a web app is a bit tricky due to the authentication service dependencie. It's also a lot of work to do the onboarding steps while testing (switch network, generate master keys etc...)
Describe the solution
A library providing window.liquid & window.webln mocks (ideally injectable in playwright test config?).
- A plus could be to let the developer configures the mock objects (custom network, custom master key etc...).
- Not sure if the mock object should show the popups but at least it should be possible to set up the user input (reject/accept the popup request, "remember my choice" case etc.)
Describe alternatives
we could mock only the authentication service, then the developer would launch the service + build Alby with that service to run its Playwright tests.
Additional context
this issue follows a reflexion while writing tests for fuji app: fuji-money/app#155
Are you working on this?
None
Feature description
Writing Playwright tests for Alby integration with a web app is a bit tricky due to the authentication service dependencie. It's also a lot of work to do the onboarding steps while testing (switch network, generate master keys etc...)
Describe the solution
A library providing
window.liquid&window.weblnmocks (ideally injectable in playwright test config?).Describe alternatives
we could mock only the authentication service, then the developer would launch the service + build Alby with that service to run its Playwright tests.
Additional context
this issue follows a reflexion while writing tests for fuji app: fuji-money/app#155
Are you working on this?
None