-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(HDS-2107) Fix test with window redirection tracking
In some cases the redirects where not registered correctly. Everything worked locally, so changed how login / logout are tracked rather than blindly test stuff. The might have been two problems: - oidc-client-ts fetches openid config before redirects. If that fails, login/logout is not done. - oidc-client-ts uses bind() when redirecting and jest.fn() loses its scope with when bound to other context. Oddly both of these should have caused tests to fail previously.
- Loading branch information
Showing
4 changed files
with
67 additions
and
70 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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