• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kobotoolbox / kpi / 27300886731
82%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-2254-endpoint-to-return-audio-length
DEFAULT BRANCH: master
Ran 10 Jun 2026 07:35PM UTC
Jobs 10
Files 881
Run time 3min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Jun 2026 07:30PM UTC coverage: 75.348% (-6.2%) from 81.505%
27300886731

push

github

web-flow
refactor(deleteAccountBanner): make stories more stable DEV-2264 (#7144)

### 💭 Notes

Fixed flaky Storybook test for DeleteAccountBanner that randomly failed
in CI.

Changes here:
- `DeleteAccountBanner.tsx`
- Swapped out the manual `useEffect` + `fetchGet` pattern for
Orval/react-query `useAssetsList` hook (works better with MSW in
Storybook)
- Fixes the race condition where tests would sometimes run before the
mock API responded
- Added proper `isPending` handling so the button's disabled state is
consistent
- `DeleteAccountBanner.stories.tsx`
- Added `play` functions to all 4 stories (Default, UserHasAssets,
UserHasNoAssets, UserOwnsMMO)
  - Each one waits for auth AND data loading before running assertions
- Actually tests the UI behavior (button states, messages) instead of
just "did it render?"

AI joke: No more Schrödinger's test – it's either passing or failing,
never both! 🐱

The bug: the component fetched user assets async, but tests could run
before that finished. Sometimes the mock was fast, sometimes slow. React
Query + explicit waits = no more flaky tests.

### 👀 Preview steps

1. Run `npm run test:storybook` locally
2. 🟢 All DeleteAccountBanner stories pass consistently across chromium,
firefox, and webkit
3. 🟢 No more random CI failures on this component (try rerunning the
successful job?)

8053 of 12198 branches covered (66.02%)

27307 of 36241 relevant lines covered (75.35%)

3.41 hits per line

Jobs
ID Job ID Ran Files Coverage
1 27300886731.1 10 Jun 2026 07:35PM UTC 879
44.88
2 27300886731.2 10 Jun 2026 07:36PM UTC 879
53.54
3 27300886731.3 10 Jun 2026 07:36PM UTC 879
50.16
4 27300886731.4 10 Jun 2026 07:36PM UTC 568
5 27300886731.5 10 Jun 2026 07:36PM UTC 881
54.83
6 27300886731.6 10 Jun 2026 07:36PM UTC 881
46.28
7 27300886731.7 10 Jun 2026 07:37PM UTC 881
66.48
8 27300886731.8 10 Jun 2026 07:39PM UTC 879
59.43
9 27300886731.9 10 Jun 2026 07:39PM UTC 881
60.61
10 27300886731.10 10 Jun 2026 07:40PM UTC 883
68.84
Source Files on build 27300886731
  • Tree
  • List 883
  • Changed 143
  • Source Changed 0
  • Coverage Changed 143
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 9718d4cb on github
  • Prev Build on main (#27299045056)
  • Next Build on main (#27300912293)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc