Complete narrow Windows role compatibility and await actual UI confirmation
Rust development slice / linux (push) Failing after 6s

This commit is contained in:
2026-11-16 21:08:55 +01:00
parent 559c4cb292
commit 039c412d6f
4 changed files with 19 additions and 1 deletions
@@ -63,7 +63,13 @@ const sha = value => crypto.createHash('sha256').update(value).digest('hex');
const button = section.getByRole('button', { name: 'SIMULIERT: Exakten SYSTEM-Nichtstart 221 bestätigen', exact: true });
assert(await button.isDisabled());
await section.getByRole('checkbox', { name: 'Ich habe genau den Fall 221', exact: false }).check();
const confirmedResponse = page.waitForResponse(r => new URL(r.url()).pathname === '/api/v1/tenants/' + witness.tenant_id + '/windows-system-nonstart-221/' + review.request_id + '/confirm' && r.request().method() === 'POST');
await button.click();
const response = await confirmedResponse;
assert(response.status() === 200);
const confirmedReview = await response.json();
assert(confirmedReview.witness_sha256 === expected.witness_sha256 && confirmedReview.receipt && Date.parse(confirmedReview.receipt.valid_until) > Date.now() + 60000);
await section.getByText('Letzte Quittung gültig bis ' + confirmedReview.receipt.valid_until + '.', { exact: false }).waitFor();
const link = section.getByRole('link', { name: 'Signierte administrative Quittung herunterladen', exact: true });
await link.waitFor(); const downloadEvent = page.waitForEvent('download'); await link.click();
const download = await downloadEvent, output = path.join(folder, 'windows-system-nonstart-221-receipt.json');