Organize device inventory by customer and restrict token access to its audience
This commit is contained in:
@@ -34,8 +34,10 @@ test('simulated human prepares root request through UI only, without approving',
|
||||
const session = object(await (await sessionResponse).json());
|
||||
expect(session.testsimulation).toBe(true); expect(session.principal).toBe(expected.expected_principal);
|
||||
expect(session.approval_origin).toBe('dev_test_browser_simulation');
|
||||
await expect(page.getByLabel('Mandant', { exact: true })).toHaveValue(text(expected.tenant_id));
|
||||
await page.getByRole('combobox', { name: 'Kunde', exact: true }).selectOption(text(expected.tenant_id));
|
||||
await page.getByRole('checkbox', { name: `Ziel ${text(expected.asset_id)}`, exact: true }).check();
|
||||
await page.getByRole('link', { name: 'Aufträge', exact: true }).click();
|
||||
await page.getByRole('link', { name: 'Auftrag planen', exact: true }).click();
|
||||
await page.getByLabel('Aktion', { exact: true }).selectOption(text(request.action));
|
||||
if (request.action === 'run_script') {
|
||||
const variants = params.variants;
|
||||
@@ -93,8 +95,9 @@ test('one opted-in immutable dev/test action: inspect all fixed bytes → UI cli
|
||||
expect(session.testsimulation).toBe(true);
|
||||
expect(session.approval_origin).toBe('dev_test_browser_simulation');
|
||||
expect(session.principal).toBe(expected.expected_principal);
|
||||
await expect(page.getByLabel('Mandant', { exact: true })).toHaveValue(text(expected.tenant_id));
|
||||
await page.getByRole('combobox', { name: 'Kunde', exact: true }).selectOption(text(expected.tenant_id));
|
||||
const operation = text(expected.operation_id);
|
||||
await page.getByRole('link', { name: 'Aufträge', exact: true }).click();
|
||||
await page.getByRole('button', { name: operation, exact: true }).click();
|
||||
const op = page.locator('section').filter({ has: page.getByRole('heading', { name: `Antrag / Ausführung ${operation}`, exact: true }) });
|
||||
await expect(op.locator('p.warning')).toContainText('Antrag: pending_approval');
|
||||
|
||||
Reference in New Issue
Block a user