From 8717849adbccf8db7ee83cd9a304e7f4a3837ae0 Mon Sep 17 00:00:00 2001 From: Aaron Coville Date: Wed, 7 Oct 2026 21:47:42 -0400 Subject: [PATCH] test(study): the orchestrator's card wears the Librarian portrait The scene test for the orchestrator's card failed on every run. It still expected the Sixth History logo with the square House-mark treatment, but the orchestrator's portrait had since moved to the reserved Librarian portrait (fascination.png, cropped like any other portrait). That change updated the portrait and face tests and missed this one. The code is right and the test was stale. It now asserts the card is dealt the Librarian portrait and is still flagged as the orchestrator's, the flag the card uses to choose that portrait itself. Dealing the orchestrator a worker's face, or dropping the flag from the scene, turns it red. --- test/study-scene.test.cjs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/study-scene.test.cjs b/test/study-scene.test.cjs index c119dff42..7903ad798 100644 --- a/test/study-scene.test.cjs +++ b/test/study-scene.test.cjs @@ -732,7 +732,7 @@ test('an assistant named for a portrait wears that portrait', async () => { assert.equal(card.props.portraitSrc, want, 'the card was dealt a face instead'); }); -test('the orchestrator wears the Sixth History mark', async () => { +test('the orchestrator wears the reserved Librarian portrait', async () => { // portraitFor reserves one portrait for the god, but it can only apply that // rule if the scene tells it which card is the god's. Nothing else in the // projection distinguishes that card, so a projection that drops the flag @@ -741,9 +741,10 @@ test('the orchestrator wears the Sixth History mark', async () => { const cards = all(view.tree, (n) => n.type === AgentCard); const god = cards.find((c) => c.props.name === 'GOD-1'); assert.ok(god, 'the god has a card'); - assert.match(god.props.portraitSrc, /sixth-history\/logo\.png$/, - 'the orchestrator does not wear the House mark'); - assert.equal(god.props.houseMark, true, 'the square House mark is cropped like portrait art'); + assert.match(god.props.portraitSrc, /portraits\/fascination\.png$/, + 'the orchestrator does not wear the Librarian portrait'); + // The card reads this flag to choose the reserved portrait itself. + assert.equal(god.props.houseMark, true, 'the card is not told it is the orchestrator\'s'); }); test('the only unexpandable wrappers are the ones that drive an element', () => {