Skip to content

Feat:Add page-level composition tests for landing, streams, analytics, and stream-detail pages /page tests 765 766 770 771 - #881

Merged
Austinaminu2 merged 4 commits into
FlowwStar:mainfrom
Barbie-Dev:feat/page-tests-765-766-770-771
Sep 28, 2026
Merged

Austinaminu2 merged 4 commits into
FlowwStar:mainfrom
Barbie-Dev:feat/page-tests-765-766-770-771

Conversation

@Barbie-Dev

Copy link
Copy Markdown
Contributor

This PR adds page-level composition tests for four pages that lacked
coverage at the composition level. Each test file follows the established
pattern from the existing settings page test — module-level vi.mock stubs
for hooks and heavy child components, isolated describe blocks per UI
state, and no dependency on real wallets, contracts, or network calls.

Changes

__tests__/pages/app/landing.test.tsx (issue #765)

Tests that app/page.tsx renders all seven landing sections together
(LandingHeader, Hero, Features, HowItWorks, UseCases, CTA, Footer) and
that they appear in the correct document order.

__tests__/pages/app/streams.test.tsx (issue #766)

Tests that app/app/streams/page.tsx renders the wallet gate, page
header, Active/Archived tab switcher, all filter controls (search input,
token pills, status pills, sort select), the bulk-select toggle
(enabled/disabled based on stream count), and the VirtualStreamList vs
EmptyStreams states — all wired to a mocked useStreams.

__tests__/pages/app/analytics.test.tsx (issue #770)

Tests that app/app/analytics/page.tsx renders all four stat cards with
loading skeletons while data is resolving (regression guard for fix #674),
correct values from a mocked streams dataset, the AnalyticsCharts
component, and the Network context card with token badges.

__tests__/pages/app/stream-detail.test.tsx (issue #771)

Tests that app/app/stream/[id]/page.tsx renders the loading skeleton,
the not-found state for a bad ID, and the full composition for a found
stream (status badge, unlock counter, progress bar, unlock chart,
timeline, details section, share button). Also covers party-specific
actions: sender sees Cancel and Duplicate buttons, recipient sees Withdraw,
and unauthenticated visitors see the connect-wallet prompt.

Closes #765
Closes #766
Closes #770
Closes #771

@drips-wave

drips-wave Bot commented Sep 28, 2026

Copy link
Copy Markdown

@Barbie-Dev 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 142fd65 into FlowwStar:main Sep 28, 2026
0 of 6 checks passed

This branch had an error being deployed

1 failed deployment
staging — 8da5e2ee Deployed Sep 28, 2026 by Barbie-Dev via deploy-staging #292
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment