import assert from 'node:assert/strict'; import { test } from 'node:test'; import { createElement, type MouseEvent, type ReactElement, type ButtonHTMLAttributes } from 'react'; import { renderToStaticMarkup } from 'react-dom/server'; import { StoneBurnerAllocation } from '../components/stone-burner-allocation'; void test('Stone Burner allocation keeps explicit physical-total commitments and provisional sealed timing readable until chosen', () => { const committed: number[] = [], props = { event: 'stone-original-event', totals: [5, 2, 5], onCommit: (total: number) => committed.push(total), busy: false }; const html = renderToStaticMarkup(createElement(StoneBurnerAllocation, props)); assert.match(html, /aria-label="Stone Burner undialed force commitment"/); assert.match(html, /Provisional timing/); assert.match(html, /Choices stay sealed until everyone has committed/); assert.match(html, /ordinary and elite losses afterward/); assert.match(html, /Commit 2 undialed physical forces/); assert.match(html, /Commit 5 undialed physical forces/); assert.equal((html.match(/