Skip to content

test(SDK-545): add tests and Storybook stories for DetailViewLayout#1403

Open
krisxcrash wants to merge 1 commit intokw/feat/sdk-545from
kw/test/sdk-545
Open

test(SDK-545): add tests and Storybook stories for DetailViewLayout#1403
krisxcrash wants to merge 1 commit intokw/feat/sdk-545from
kw/test/sdk-545

Conversation

@krisxcrash
Copy link
Copy Markdown
Contributor

@krisxcrash krisxcrash commented Mar 27, 2026

Summary

Adds unit tests and Storybook stories for the DetailViewLayout component introduced in #1402.

Changes

  • Tests (13 cases): rendering (title, subtitle, tabs, actions), back navigation (visibility, click handler), tab interaction (onTabChange callback), and accessibility (axe violations)
  • Stories (5 variants): Default (mirrors Figma), WithoutBackButton, WithoutActions, MinimalConfig, SingleTab

Related

Testing

  • npm run test -- --run src/components/Common/DetailViewLayout/DetailViewLayout.test.tsx — 13/13 passing
  • npx tsc --noEmit — clean
  • Storybook stories render correctly via npm run storybook

Unit tests covering rendering, back navigation, tab interaction, and
accessibility. Storybook stories for Default, WithoutBackButton,
WithoutActions, MinimalConfig, and SingleTab variants.

Made-with: Cursor
@krisxcrash krisxcrash self-assigned this Mar 27, 2026
@krisxcrash krisxcrash marked this pull request as ready for review March 27, 2026 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant