Created
September 17, 2023 13:45
-
-
Save YonatanKra/bd54cd2907e4dded2e6fc87b46a0b529 to your computer and use it in GitHub Desktop.
Tauri-demo: login edge case - auth component is not implemented
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it('should display login screen if auth component is not initialized', () => { | |
isLoggedIn = true; | |
const originalIsLoggedIn = MockAuth.prototype.isLoggedIn; | |
MockAuth.prototype.isLoggedIn = undefined; | |
app.connectedCallback(); | |
MockAuth.prototype.isLoggedIn = originalIsLoggedIn; | |
expect(getElementInView('yag-login')).toBeTruthy(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment