fix(admin): complete processing diagnostics and failure evidence

This commit is contained in:
cesnimda
2026-10-29 07:24:49 +01:00
parent 0dd788bdfc
commit 3255da9fc6
15 changed files with 450 additions and 36 deletions
@@ -48,9 +48,19 @@ test('[D] Real administrator/owner boundaries, actual cancellation history and r
await page.context().route('**/*', route => ['localhost', '127.0.0.1'].includes(new URL(route.request().url()).hostname) ? route.continue() : route.abort());
await page.goto('/admin/processing');
await page.getByLabel('Owner ID', { exact: true }).fill(owner.id);
await page.getByLabel('Search users, jobs or task ID', { exact: true }).fill(id);
await page.getByLabel('Worker filter', { exact: true }).selectOption('untracked');
await page.getByLabel('Submitted from (UTC)', { exact: true }).fill('2020-01-01');
await page.getByLabel('Submitted before (UTC)', { exact: true }).fill('2100-01-01');
await page.getByLabel('Application ID', { exact: true }).fill('2147483647');
await page.getByRole('button', { name: 'Apply filters', exact: true }).click();
await expect(page.getByText('No processing jobs match these filters.', { exact: true })).toBeVisible();
await page.getByLabel('Application ID', { exact: true }).fill('');
await page.getByRole('button', { name: 'Apply filters', exact: true }).click();
await page.getByRole('button', { name: `View processing details ${id}`, exact: true }).click();
await expect(page.getByLabel('Correlation ID', { exact: true })).toHaveValue(id);
await expect(page.getByLabel('Submitting user ID', { exact: true })).toHaveValue(owner.id);
await expect(page.getByText('No linked job', { exact: true })).toBeVisible();
await expect(page.getByText('No retained events. Older jobs may predate event recording.', { exact: true })).toBeVisible();
const cancellation = await ownerClient.post(`${api}/operations/${id}/cancel`, { headers: owner.headers });
expect(cancellation.status()).toBe(200);