Enforce customer boundaries on token administration and finalize fleet navigation
This commit is contained in:
@@ -37,7 +37,9 @@ function counterScript(id) {
|
||||
const session = await (await response).json();
|
||||
assert(session.testsimulation === true && session.approval_origin === 'dev_test_browser_simulation' && session.principal === expected.expected_principal);
|
||||
await page.getByRole('status').filter({ hasText: 'SIMULIERT' }).waitFor();
|
||||
assert(await page.getByLabel('Mandant', { exact: true }).inputValue() === expected.tenant_id);
|
||||
await page.getByLabel('Kunde', { exact: true }).selectOption(expected.tenant_id);
|
||||
assert(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 operation = page.locator('section').filter({ has: page.getByRole('heading', { name: 'Antrag / Ausführung ' + expected.operation_id, exact: true }) });
|
||||
const state = JSON.parse(await operation.locator('pre').first().innerText());
|
||||
|
||||
Reference in New Issue
Block a user