fix: the backup test result says its count through plural(), and the panel tests read the size and folder field as shown
release / govulncheck (push) Successful in 17s
release / web (push) Successful in 1m30s
release / go (push) Successful in 1m46s
release / android (push) Successful in 5m23s
release / integration (push) Successful in 5m32s
release / Build signed APK (push) Successful in 5m33s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 24s
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:04:32 -05:00
co-authored by Claude Opus 5.5
parent f7222732e3
commit ff5ee755f2
2 changed files with 4 additions and 3 deletions
@@ -71,7 +71,7 @@ describe('BackupPanel', () => {
expect(verdict()).toMatch(/^ ?Backed up /);
expect(verdict()).toMatch(/Next backup /);
const runs = screen.getByRole('list', { name: /latest backups/i });
expect(runs.textContent).toMatch(/Scheduled · database\/minstrel-20261102T030000Z\.tar · 12 MB/);
expect(runs.textContent).toMatch(/Scheduled · database\/minstrel-20261102T030000Z\.tar · 12\.0 MB/);
expect(runs.textContent).toMatch(/Saved/);
});
@@ -181,7 +181,7 @@ describe('BackupPanel', () => {
test('the folder destination asks for a path, not a bucket', async () => {
await renderPanel(status({ config: { ...base.config, destination: 'folder', folder: '/backups' } }));
expect(screen.getByLabelText(/^folder$/i)).toHaveProperty('value', '/backups');
expect(screen.getByRole('textbox', { name: /^folder$/i })).toHaveProperty('value', '/backups');
expect(screen.queryByLabelText(/^bucket$/i)).toBeNull();
});
});
@@ -13,6 +13,7 @@
import SettingsGroup from '#lib/components/settings/SettingsGroup.svelte';
import SettingRow from '#lib/components/settings/SettingRow.svelte';
import Segmented from '#lib/components/settings/Segmented.svelte';
import { plural } from '#lib/utils/plural.js';
import { hourLabel, when } from './backupTime.js';
// Where the nightly backup goes and when. The form keeps its own drafts,
@@ -175,7 +176,7 @@
{#if check.backups === 0}
No backups there yet.
{:else}
{check.backups} {check.backups === 1 ? 'backup' : 'backups'} there, the newest from {when(check.latest!)}.
{plural(check.backups, 'backup', 'backups')} there, the newest from {when(check.latest!)}.
{/if}
</p>
{/if}