Skip to content

Fix test conditions#117

Merged
cedelavergne-ledger merged 5 commits into
developfrom
cev/fix_test_conditions
Jun 18, 2026
Merged

Fix test conditions#117
cedelavergne-ledger merged 5 commits into
developfrom
cev/fix_test_conditions

Conversation

@cedelavergne-ledger

Copy link
Copy Markdown
Contributor

Description

  • Populate demo passwords only on first storage init
  • wui: fix showSaveFilePicker SecurityError on backup
  • Fix format specifiers for size_t arguments
  • Bump version

Changes include

  • Bugfix (non-breaking change that solves an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (change that is not backwards-compatible and/or changes current functionality)
  • Tests
  • Documentation
  • Other (for changes that might not fit in any category)

The POPULATE build flag seeded password1/2/3 in app_main() on every app
start, with no guard, so they piled up as duplicates on each launch.

init_storage() now reports whether it just freshly initialized the storage
(magic not yet set); the demo passwords are created only in that case. The
behaviour stays fully gated by the POPULATE compile flag.
The save dialog was opened only after the device exchange (dump_metadatas),
by which time the click's transient user activation had expired, so
showSaveFilePicker threw "Must be handling a user gesture".

Split saveJSON into pickSaveTarget() — called first, synchronously from the
click handler while the activation is still valid — and writeJSON(), called
once the backup data is ready. Falls back to a Blob/anchor download when the
File System Access API is unavailable or refuses.
@codecov-commenter

codecov-commenter commented Jun 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.96%. Comparing base (41952e1) to head (ea04928).
⚠️ Report is 6 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #117   +/-   ##
========================================
  Coverage    73.96%   73.96%           
========================================
  Files            7        7           
  Lines          361      361           
  Branches        41       41           
========================================
  Hits           267      267           
  Misses          88       88           
  Partials         6        6           
Flag Coverage Δ
unittests 73.96% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

Copy link
Copy Markdown
Contributor

Code coverage report

Code Coverage

Per-file coverage
Package Line Rate Branch Rate Health
src 41% 37%
Summary 41% (69 / 168) 37% (26 / 71)

@cedelavergne-ledger
cedelavergne-ledger merged commit 8d48954 into develop Jun 18, 2026
71 checks passed
@cedelavergne-ledger
cedelavergne-ledger deleted the cev/fix_test_conditions branch June 18, 2026 08:39
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.

2 participants