Organize device inventory by customer and restrict token access to its audience
This commit is contained in:
@@ -17,11 +17,13 @@ test('real TLS UI: login, tenant, fixed preview, pending, reload, CSRF denial an
|
||||
let authorizationRequests = 0;
|
||||
page.on('request', r => { if (new URL(r.url()).pathname.endsWith('/authorizations')) authorizationRequests++; });
|
||||
await login(page);
|
||||
await expect(page.getByLabel('Mandant', { exact: true })).not.toHaveValue('');
|
||||
await expect(page.getByRole('heading', { name: 'Geräte', exact: true })).toBeVisible();
|
||||
const cookies = await context.cookies();
|
||||
const authCookie = cookies.find(c => c.name === '__Host-rmm_session');
|
||||
expect(authCookie?.httpOnly).toBe(true); expect(authCookie?.secure).toBe(true); expect(authCookie?.sameSite).toBe('Strict');
|
||||
await page.getByRole('checkbox', { name: `Ziel ${asset}`, 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('Exakte UTF-8 Skriptbytes', { exact: false }).fill("printf '%s\\n' 'Hello World'\n");
|
||||
await page.getByLabel('Erwartete stdout-Ausgabe', { exact: false }).fill('Hello World\n');
|
||||
await page.getByLabel('Begründung', { exact: true }).fill('Authenticated synthetic local fixture · pending-only browser contract; do not execute');
|
||||
|
||||
Reference in New Issue
Block a user