-
Notifications
You must be signed in to change notification settings - Fork 317
test(auto-refresh-token): fix loginOptions in login inactivity test #685
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
jarczykkonrad
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! Looked at this as well
| it('should login if user is inactive and inactivity timeout is set to "login"', async () => { | ||
| service['options'].onInactivityTimeout = 'login'; | ||
| service['options'].logoutOptions = { redirectUri: 'testLoginUri' }; | ||
| service['options'].loginOptions = { redirectUri: 'testLoginUri' }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏻
|
Hi @no-felix, |
|
@mauriciovigolo When do you think you will release v21? :) |
|
@mauriciovigolo Hi! Sorry, will you release v21 before christmas? |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
A unit test in AutoRefreshTokenService's spec incorrectly assigns logoutOptions in the "login" inactivity timeout test, causing an expectation failure because mockKeycloak.login is invoked with undefined.
Issue Number: N/A
What is the new behavior?
Correct the test to set loginOptions: { redirectUri: 'testLoginUri' } for the "login" inactivity timeout case.
The test now verifies that mockKeycloak.login is called with the expected options.
No production code changes.
Does this PR introduce a breaking change?
Other information