Record native ARM64 HTTPS release and installer verification

This commit is contained in:
2026-11-18 18:07:31 +01:00
parent 6d15f1b3f5
commit bfdc3da8af
7 changed files with 132 additions and 9 deletions
+3 -2
View File
@@ -165,7 +165,7 @@ test('shows the execution stop and prepares the Windows restart through a versio
expect(writes).toHaveLength(2);
});
test('offers local admin opt-in on both installer commands and keeps the one-time code outside commands', async ({ page }) => {
test('offers one Linux command for x86-64 and ARM64 and keeps the code outside both installer commands', async ({ page }) => {
const token = 'f'.repeat(64), api = '/api/v1/tenants/' + tenantId;
const requests: string[] = [];
await page.route(origin + '/auth/config', r => r.fulfill({ json: { dev_login_enabled: true, oidc_configured: false, oidc_login_url: null } }));
@@ -176,7 +176,7 @@ test('offers local admin opt-in on both installer commands and keeps the one-tim
if (url.pathname === '/api/v1/tenants') return r.fulfill({ json: listing(auth.tenants) });
if (url.pathname === api + '/enrollment-tokens') return r.fulfill({ json: {
token, expires_at: new Date(Date.now() + 900000).toISOString(), bootstrap_origin: 'https://bootstrap.example',
release_platforms: ['x86_64-unknown-linux-gnu', 'x86_64-pc-windows-gnu']
release_platforms: ['x86_64-unknown-linux-gnu', 'aarch64-unknown-linux-gnu', 'x86_64-pc-windows-gnu']
} });
return r.fulfill({ json: { ...listing([]), pending_count: 0 } });
});
@@ -185,6 +185,7 @@ test('offers local admin opt-in on both installer commands and keeps the one-tim
const option = enroll.getByRole('checkbox', { name: /Administratorskripte/ });
await expect(option).not.toBeChecked();
await enroll.getByRole('button', { name: 'Einmalcode erstellen' }).click();
await expect(enroll.getByRole('heading', { name: 'Linux (x86-64 und ARM64)' })).toBeVisible();
const commands = enroll.locator('pre');
await expect(commands).toHaveCount(2);
expect((await commands.allTextContents()).join(' ')).not.toMatch(/enable-admin-scripts|EnableAdministratorScripts/);