blob: 1a922c24088ccf86208640e5c9a7a6e854fffed6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import { describe, expect, it } from 'vitest';
// leader review regression (2026-09-17): the recreated dataset previously
// stayed invisible — the parent (ProjectDataTab) never reloaded, the user
// remained on the failed card. The wiring must exist AND the callback must be
// the parent's own load (so pending→ready/failed tracking resumes).
import dataTabSource from '../pages/ProjectDataTab.svelte?raw';
import wizardSource from '../components/DatasetWizard.svelte?raw';
describe('ProjectDataTab reloads when a failed dataset is re-requested', () => {
it('DatasetCard receives onRecreated bound to the parent reload', () => {
const src: string = dataTabSource as unknown as string;
expect(src).toMatch(/onRecreated=\{\(\) => void load\(\)\}/);
});
it('dataset card posts the create through the same client API the wizard uses', () => {
const src: string = wizardSource as unknown as string;
expect(src).toMatch(/createDataset/);
});
});
|