Test — Activity + Release Notes Tabs

bahalaka.com · ~t

Smoke Tests

4 tabs render in tab barPASS
Proposal, Activity, Dev Artifacts, Release Notes — all visible, correct order.
Tab switching worksPASS
Each tab button shows its content, hides others, highlights active button.

Functional Tests — Activity Tab

Lazy load triggers on first openPASS
loadActivity() fires on tab switch. Shows "Loading comments..." then renders results. Second open reuses cache — no re-fetch.
All 28 sections queriedPASS
SECTIONS array has all 28 section IDs matching toggleComments calls in Proposal tab.
Comments display with full metadataPASS
Each row shows: section label, author name, comment text (truncated at 150 chars), timestamp, edited flag.
Sort toggle — newest/oldestPASS
Button toggles between "Newest first" and "Oldest first". List re-sorts without re-fetching.
Click comment → deep link to ProposalPASS
goToComment() switches to Proposal tab, opens the comment thread, smooth-scrolls to section. Works whether thread was previously open or closed.
Comment count displayedPASS
Shows "N comments" (or "1 comment") in activity-count label.

Functional Tests — Release Notes Tab

3 releases displayed, newest firstPASS
v1.2 (top) → v1.1 → v1.0 (bottom). Each has version, date+time, bullet-point summary.
Release notes are non-technicalPASS
No code references, no commit hashes, no technical jargon. Written for proposal readers.

Integration Tests

Mobile viewport — tabs scrollablePASS
Tab bar has overflow-x: auto. 4 tabs fit with smaller font (10px) + reduced padding. Scrollable if needed.
goToComment fix — always opens threadPASS
Removed open → add open → toggle pattern. Now: force-close → toggleComments (which opens + renders). Works whether thread was open or closed.

Results

12/12 tests pass. One fix applied: goToComment simplified to always force-open thread regardless of prior state.