Make order search, device results and decisions visible in the WebUI

This commit is contained in:
2026-11-18 09:14:42 +01:00
parent 5b6e9c9cdb
commit 14a271f61a
8 changed files with 155 additions and 45 deletions
+9
View File
@@ -217,6 +217,15 @@ test('shows the bound script text alongside single and per-device results', asyn
await expect(page.getByLabel('stderr Textansicht')).toHaveText('Fehler auf Windows');
await page.getByRole('button', { name: 'Ergebnis schließen für test-windows' }).click();
await expect(page.getByRole('region', { name: 'Gespeichertes Konsolenergebnis' })).toHaveCount(0);
resultReads.clear();
await openOrder(multiOperationId + '/' + jobs[1]!.job_id);
await expect(page.getByRole('heading', { name: 'Ergebnis für test-windows' })).toBeVisible();
await expect(page.getByLabel('stderr Textansicht')).toHaveText('Fehler auf Windows');
expect([...resultReads]).toEqual([jobs[1]!.job_id]);
resultReads.clear();
await openOrder(multiOperationId + '/' + randomUUID());
await expect(page.getByRole('alert')).toContainText('gehört nicht zu diesem Auftrag');
expect(resultReads.size).toBe(0);
expect(await page.evaluate(() => document.documentElement.scrollWidth)).toBeLessThanOrEqual(390);
mismatchedPlan = true;
await page.reload();