testing: Added stories for Auth PassKey button#969
testing: Added stories for Auth PassKey button#969garronej merged 2 commits intokeycloakify:mainfrom
Conversation
WalkthroughAdds a new Storybook story export Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧬 Code graph analysis (1)stories/login/pages/LoginUsername.stories.tsx (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
stories/login/pages/Login.stories.tsx (1)
362-380: Passkey story implementation is consistent and correctThis
WithAuthPassKeystory is wired the same way as other stories that customizekcContext(spreadargsthen provide a focusedkcContextwithurl.loginActionandenableWebAuthnConditionalUI). That should be enough to surface the passkey button scenario in Storybook.If you end up adding more passkey stories later, you might consider a tiny helper to avoid repeating the same
kcContextshape across files, but that’s optional.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
stories/login/pages/Login.stories.tsx(1 hunks)stories/login/pages/LoginPassword.stories.tsx(1 hunks)stories/login/pages/LoginUsername.stories.tsx(1 hunks)
🧰 Additional context used
🧬 Code graph analysis (2)
stories/login/pages/Login.stories.tsx (1)
stories/login/pages/LoginPassword.stories.tsx (1)
WithAuthPassKey(76-88)
stories/login/pages/LoginPassword.stories.tsx (1)
stories/login/pages/Login.stories.tsx (1)
WithAuthPassKey(368-380)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: Test with Node v18 on ubuntu-latest
🔇 Additional comments (1)
stories/login/pages/LoginPassword.stories.tsx (1)
70-88: Passkey story mirrors main login configuration
WithAuthPassKeyhere mirrors the mainlogin.ftlstory: samekcContextshape withurl.loginActionandenableWebAuthnConditionalUI: true, and the same render pattern. That should reliably exercise the passkey button on the password page as intended.No issues from a correctness or Storybook‑usage perspective.
|
Thank you @waynemorphic, |
|
If you could add it as well to https://github.com/keycloakify/login-ui-storybook, that would be reall neat. |
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.