You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Testing SwiftUI can be relatively painful as it usually requires XCUIApplication or abstracting out bits of internal view logic into ViewModels which just offers a layer of abstraction.
Currently the OAWebView is initialized with an empty constructor and has the OAuth object injected with
@Environment(\.oauth)varoauth:OAuth
If we change the OAWebView to be initialized with an OAuth object instead of using the @Environment injection, we should be able to greatly improve the test coverage because this will allow tests to call the OAWebViewCoordinator methods without using a .default injected OAuth object.
Activity