-
-
Notifications
You must be signed in to change notification settings - Fork 828
Add Playwright tests for OIDC-aware & OIDC-native #12252
Conversation
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.
I'm halfway through this review, and whilst I've seen a lot of docker magic I half understand, I've seen nothing to do with the purported purpose of this PR. Please could you break it up to make it more digestible?
const delegatedAuthAccountUrl = useAsyncMemo(async () => { | ||
await sdkContext.oidcClientStore.readyPromise; // wait for the store to be ready | ||
return sdkContext.oidcClientStore.accountManagementEndpoint; | ||
}, [sdkContext.oidcClientStore]); | ||
const disableMultipleSignout = !!delegatedAuthAccountUrl; |
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.
I haven't read through the whole class in detail, but won't setting delegatedAuthAccountUrl
to undefined
while we make a bunch of network requests mean that we display the wrong UI for a while? We need to distinguish between "we don't know yet" and "we're definitely not OIDC".
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.
Indeed, no design was given for this case so this is what we're going with for the time being.
Yup as per your ask on a different PR I split it into sane commits; so the actual main bit of the PR is the last commit - e13048d - the rest are all atomic building blocks for the test to work upon |
Well, separate commits are certainly helpful, but this is still an absolutely epic PR which is making a bunch of different changes. I really think it would be helpful to break it up into smaller PRs, to make the review cycle easier (as well as all the other usual reasons we use separate PRs rather than a single massive two-weekly PR). Please? |
… OIDC mode Signed-off-by: Michael Telatynski <[email protected]>
Signed-off-by: Michael Telatynski <[email protected]>
effef3d
to
4d01fff
Compare
Stabilises raciness of the
Manage account
button in Settings alsoThis change is marked as an internal change (Task), so will not be included in the changelog.