MockAuthWebViewViewModel
To test AuthWebViewController without any actual provider.
- It spends some time in the “preparing” state sometimes skipping it.
- Then pretends that it got an endpoint (an inline page) with a link to a redirect URL.
Tapping the link should cause the web view to intercept it and notify the view model via
handleRedirect()
. - The latter is going to jump to a “finalizing” state spending some time there (possibly skipping it) and then jumping to “completed”. And of course it can randomly fail at any step.