Skip to content

Add comprehensive component tests for analytics charts - #882

Merged
Austinaminu2 merged 1 commit into
FlowwStar:mainfrom
Kingsman-99:batch-62-features
Sep 28, 2026
Merged

Austinaminu2 merged 1 commit into
FlowwStar:mainfrom
Kingsman-99:batch-62-features

Conversation

@Kingsman-99

Copy link
Copy Markdown
Contributor

Created charts.test.tsx with 100% coverage of all render branches in AnalyticsCharts. Tests include: all six empty-state branches (series, token distribution, status breakdown, top recipients, top tokens, unlock progress), populated data rendering for area/pie/bar charts with correct element counts, token symbol display and formatting, stream count singular/plural forms, unlock progress percentage calculation (0%, 50%, 100%), and card title/description rendering. Uses React Testing Library to verify UI elements render correctly for each state.

Add comprehensive component tests for navbar component

Created navbar.test.tsx with full coverage of active-link highlighting, network/theme dropdown state changes, and network-mismatch banner conditional rendering. Tests include: highlighting correct active link per route (handles nested routes), network dropdown selection updating state (testnet/mainnet), theme dropdown selection (light/dark/system), network-mismatch banner only rendering when isConnected && networkMismatch with correct wallet/network display, offline status indicator, new stream button disabled state on network mismatch, mobile nav consistency, and presence of required child components (Brand, NotificationBell, ConnectWalletButton). Includes comprehensive mocking of navigation, theme, network, wallet, and online-status hooks.

Closes #644
Closes #645


name: Pull request
about: Describe a focused change and how it was verified
title: 'feat: '
labels: enhancement

Issue

Closes #

Summary

Describe the user or maintainer-facing change.

Changes

Test plan

  • I added or updated automated tests.
  • I ran the relevant test suite.
  • I checked the change in the affected environment.

Checklist

  • The change is scoped to the linked issue.
  • Documentation and configuration were updated where needed.
  • No secrets, private keys, or wallet credentials are included.

Created charts.test.tsx with 100% coverage of all render branches in AnalyticsCharts. Tests include: all six empty-state branches (series, token distribution, status breakdown, top recipients, top tokens, unlock progress), populated data rendering for area/pie/bar charts with correct element counts, token symbol display and formatting, stream count singular/plural forms, unlock progress percentage calculation (0%, 50%, 100%), and card title/description rendering. Uses React Testing Library to verify UI elements render correctly for each state.

Add comprehensive component tests for navbar component

Created navbar.test.tsx with full coverage of active-link highlighting, network/theme dropdown state changes, and network-mismatch banner conditional rendering. Tests include: highlighting correct active link per route (handles nested routes), network dropdown selection updating state (testnet/mainnet), theme dropdown selection (light/dark/system), network-mismatch banner only rendering when isConnected && networkMismatch with correct wallet/network display, offline status indicator, new stream button disabled state on network mismatch, mobile nav consistency, and presence of required child components (Brand, NotificationBell, ConnectWalletButton). Includes comprehensive mocking of navigation, theme, network, wallet, and online-status hooks.

Closes FlowwStar#644
Closes FlowwStar#645
@drips-wave

drips-wave Bot commented Sep 28, 2026

Copy link
Copy Markdown

@Kingsman-99 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

@Austinaminu2
Austinaminu2 merged commit 28a4ae6 into FlowwStar:main Sep 28, 2026
0 of 6 checks passed

This branch had an error being deployed

1 failed deployment
staging — 94ee0046 Deployed Sep 28, 2026 by Kingsman-99 via deploy-staging #293
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.

Add component tests for components/layout/navbar.tsx Add component tests for components/analytics/charts.tsx

2 participants