The first public release of Fabled Minstrel #158
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user