Enforce customer boundaries on token administration and finalize fleet navigation

This commit is contained in:
2026-11-17 22:05:44 +01:00
parent 0afaca1d64
commit 312da6f39e
25 changed files with 1207 additions and 208 deletions
+3 -1
View File
@@ -28,7 +28,9 @@ function privateJson(file) {
const session = await (await sessionResponse).json();
assert(session.testsimulation === true && session.principal === 'simulated-testprincipal-a');
await page.getByRole('status').filter({ hasText: 'SIMULIERT' }).waitFor();
assert.equal(await page.getByLabel('Mandant', { exact: true }).inputValue(), expected.tenant_id);
await page.getByLabel('Kunde', { exact: true }).selectOption(expected.tenant_id);
assert.equal(await page.getByLabel('Kunde', { exact: true }).inputValue(), expected.tenant_id);
await page.getByRole('link', { name: 'Aufträge', exact: true }).click();
await page.getByRole('button', { name: expected.operation_id, exact: true }).click();
const op = page.locator('section').filter({ has: page.getByRole('heading', { name: 'Antrag / Ausführung ' + expected.operation_id, exact: true }) });
const response = page.waitForResponse(r => new URL(r.url()).pathname === `/api/v1/tenants/${expected.tenant_id}/jobs/${expected.job_id}` && r.status() === 200);