test(web): use canonical run and review response fixtures (CL25)
This commit is contained in:
parent
dac49ac1b8
commit
2a9382a201
1 changed files with 21 additions and 12 deletions
|
|
@ -1451,15 +1451,20 @@ describe('canonical research workbench', () => {
|
|||
expect(retry.headers.get('Idempotency-Key')).toBe(first.headers.get('Idempotency-Key'));
|
||||
expect(retry.body).toEqual({ speedMultiplier: null });
|
||||
await flush(() =>
|
||||
reply(retry, {
|
||||
id: 'accepted',
|
||||
backtestId: 'definition',
|
||||
runNumber: 1,
|
||||
status: 'pending',
|
||||
progress: 0,
|
||||
createdAt: '2026-01-01',
|
||||
speedMultiplier: null,
|
||||
})
|
||||
reply(
|
||||
retry,
|
||||
{
|
||||
id: 'accepted',
|
||||
backtestId: 'definition',
|
||||
runNumber: 1,
|
||||
status: 'pending',
|
||||
progress: 0,
|
||||
createdAt: '2026-01-01',
|
||||
updatedAt: '2026-01-01',
|
||||
speedMultiplier: null,
|
||||
},
|
||||
202
|
||||
)
|
||||
);
|
||||
expect(latest.hasPendingSubmission).toBe(false);
|
||||
await flush(() => {
|
||||
|
|
@ -1497,9 +1502,13 @@ describe('canonical research workbench', () => {
|
|||
expect(field('Review reason').value).toBe('Reviewed immutable retained bytes');
|
||||
await flush(() => click('Approve built-in version'));
|
||||
await flush(() =>
|
||||
reply(request('/api/v2/strategy-versions/version-one/reviews', 'POST'), {
|
||||
version: version(),
|
||||
})
|
||||
reply(
|
||||
request('/api/v2/strategy-versions/version-one/reviews', 'POST'),
|
||||
{
|
||||
version: version(),
|
||||
},
|
||||
201
|
||||
)
|
||||
);
|
||||
expect(reviewed).toHaveLength(1);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue