Skip to content

test(ui): cover masked/mono/dl on AddressDisplay, add Separator suite, SkeletonCard custom header & SkeletonRow count (#338) - #384

Open
RUKAYAT-CODER wants to merge 1 commit into
Sorokit:mainfrom
RUKAYAT-CODER:wave-issue-338-tests
Open

test(ui): cover masked/mono/dl on AddressDisplay, add Separator suite, SkeletonCard custom header & SkeletonRow count (#338)#384
RUKAYAT-CODER wants to merge 1 commit into
Sorokit:mainfrom
RUKAYAT-CODER:wave-issue-338-tests

Conversation

@RUKAYAT-CODER

Copy link
Copy Markdown
Contributor

Summary

Adds Vitest coverage for the alternative layouts flagged in the Stellar Wave issue:

  • AddressDisplay: masked produces a 4-prefix + 3 middot + 4-suffix string shorter than the source; mono adds font-mono; when label is set the markup is a <dl><dt>{label}</dt><dd>{addressSpan}</dd></dl>, no <dl> when label is omitted.
  • Separator (new test file): role=separator on both orientations; aria-orientation=vertical and w-px h-full for vertical; labeled renders the label inline; unlabeled renders only h-px bg-line; spacing=sm|md|lg maps to my-2|my-4|my-6.
  • Skeleton: SkeletonCard renders the structure prop wholesale in place of the default header + rows layout (same path as children); SkeletonRow renders the expected 4 placeholders (1 outer wrapper + 1 avatar circle + 2 text lines).

Notes

  • Tests-only change — no source files touched in this branch.
  • Asserts use className.toContain(...) / toHaveTextContent(...) patterns already established by the existing test suites in this repo.
  • For #338's structural assertion on SkeletonCard, the data-testid marker on the custom block is a normal Vitest dev-only attribute and does not leak into production output.

Closes #338

…, SkeletonCard custom header & SkeletonRow count (Sorokit#338)

Adds Vitest coverage for the alternative layouts flagged in Sorokit#338:

- AddressDisplay: masked produces a 4-prefix + 3 middot + 4-suffix string shorter than the source; mono adds font-mono; when label is set the markup is a <dl><dt>{label}</dt><dd>{addressSpan}</dd></dl>, no <dl> when label is omitted.

- Separator (new test file): role=separator on both orientations; aria-orientation=vertical and w-px h-full for vertical; labeled renders the label inline between the two horizontal lines; unlabeled renders only h-px bg-line; spacing=sm|md|lg maps to my-2|my-4|my-6; forwarded className lands on the root.

- Skeleton: SkeletonCard renders the structure prop wholesale in place of the default header + rows layout (same path as children); SkeletonRow renders the expected 4 placeholders (1 outer wrapper + 1 avatar circle + 2 text lines).

Closes Sorokit#338
@drips-wave

drips-wave Bot commented Jul 28, 2026

Copy link
Copy Markdown

@RUKAYAT-CODER Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

test: AddressDisplay masked/mono/dl structure, Separator label/vertical/spacing, SkeletonCard custom header and SkeletonRow count

1 participant