fix: the backup panel test reads the music sizes as formatBytes prints them
release / govulncheck (push) Successful in 14s
release / web (push) Successful in 1m23s
release / go (push) Successful in 1m40s
release / android (push) Successful in 5m4s
release / Build signed APK (push) Successful in 5m15s
release / integration (push) Successful in 5m25s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 22s
release / Verify release artifacts (tag releases only) (push) Skipped

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-02 15:35:58 -05:00
co-authored by Claude Opus 5.5
parent 967763f6ce
commit 5090c89d20
@@ -201,10 +201,10 @@ describe('BackupPanel', () => {
}) })
); );
const music = screen.getByTestId('backup-music').textContent?.replace(/\s+/g, ' ') ?? ''; const music = screen.getByTestId('backup-music').textContent?.replace(/\s+/g, ' ') ?? '';
expect(music).toMatch(/4 of 10 files backed up · 120\.0 MB of 300\.0 MB/); expect(music).toMatch(/4 of 10 files backed up · 120 MB of 300 MB/);
expect(music).toMatch(/The rest goes with the next backups\./); expect(music).toMatch(/The rest goes with the next backups\./);
const runs = screen.getByRole('list', { name: /latest backups/i }).textContent?.replace(/\s+/g, ' ') ?? ''; const runs = screen.getByRole('list', { name: /latest backups/i }).textContent?.replace(/\s+/g, ' ') ?? '';
expect(runs).toMatch(/Music: 4 files · 120\.0 MB/); expect(runs).toMatch(/Music: 4 files · 120 MB/);
expect(runs).toMatch(/carries on with the next backup/); expect(runs).toMatch(/carries on with the next backup/);
}); });