Skip to content

Test: Implement Component: Skeleton Loading States for Dashboard - #548

Merged
johdanike merged 3 commits into
SwiftChainn:mainfrom
Ikechukwu-Patrick:test-skeleton-loaders
Sep 1, 2026
Merged

Test: Implement Component: Skeleton Loading States for Dashboard#548
johdanike merged 3 commits into
SwiftChainn:mainfrom
Ikechukwu-Patrick:test-skeleton-loaders

Conversation

@Ikechukwu-Patrick

Copy link
Copy Markdown
Contributor

Closes #481

Summary
This PR implements automated component tests using React Testing Library to verify that the dashboard securely renders skeleton loading states prior to API resolution.

Changes Proposed

  • Created DashboardOverview.test.tsx to assert loading UI transitions.
  • Mocked the internal useDashboardData hook to deterministically force isLoading: true and isLoading: false states.
  • Asserted the presence of data-testid="skeleton-loader" elements during the loading phase and their complete removal once the mocked payload resolves.
  • Validated error handling rendering when the data fetch fails.

@johdanike
johdanike merged commit 358d29f into SwiftChainn:main Sep 1, 2026
0 of 2 checks passed
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] Component: Skeleton Loading States for Dashboard

2 participants