Enforce customer boundaries on token administration and finalize fleet navigation
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user