import assert from 'node:assert/strict'; import test from 'node:test'; import React from 'react'; import { renderToStaticMarkup } from 'react-dom/server'; import { VictoryProgress } from '../components/victory-progress'; import { viewGame } from '../game/engine'; import { fremenEcazFinalTurn } from './fixture-fremen-ecaz-victory'; void test('public final-turn guide explains shared Tabr and keeps the victory checkpoint explicit', () => { const g = fremenEcazFinalTurn(); const views = g.players.map((p) => viewGame(g, p.id)); const html = views.map((v) => renderToStaticMarkup()); assert.ok(html.every((page) => page === html[0])); assert.match(html[0], /permitted allied Ecaz and Fremen co-occupation/); assert.match(html[0], /only at the final-turn check/); assert.match(html[0], /A Bene Gesserit prediction cannot replace/); assert.doesNotMatch(html[0], /