@@ -452,6 +452,31 @@ describe("Canoe", () => {
452452 expect ( rep . legend ?. D2 ) . to . deep . equal ( { name : "d6-5" , opacity : 1 } ) ;
453453 } ) ;
454454
455+ it ( "emulated stymie roll shows empty dice until roll is persisted" , ( ) => {
456+ const g = playFixture ( [
457+ [ "c3" , { owner : 1 , face : 8 } ] ,
458+ [ "c6" , { owner : 1 , face : 8 } ] ,
459+ ] ) ;
460+ g . move ( "roll:1" , { emulation : true } ) ;
461+ const rep = g . render ( ) ;
462+ expect ( rep . legend ?. D1 ) . to . deep . equal ( { name : "d6-empty" , opacity : 1 } ) ;
463+ expect ( rep . legend ?. D2 ) . to . equal ( undefined ) ;
464+ const [ f2Row , f2Col ] = clickCell ( "f2" ) ;
465+ const pstr = rep . pieces as string ;
466+ expect ( pstr . split ( "\n" ) [ f2Row ] . split ( "," ) [ f2Col ] ) . to . equal ( "D1" ) ;
467+ } ) ;
468+
469+ it ( "emulated stymie roll:2 shows two empty dice" , ( ) => {
470+ const g = playFixture ( [
471+ [ "c3" , { owner : 1 , face : 8 } ] ,
472+ [ "c6" , { owner : 1 , face : 8 } ] ,
473+ ] ) ;
474+ g . move ( "roll:2" , { emulation : true } ) ;
475+ const rep = g . render ( ) ;
476+ expect ( rep . legend ?. D1 ) . to . deep . equal ( { name : "d6-empty" , opacity : 1 } ) ;
477+ expect ( rep . legend ?. D2 ) . to . deep . equal ( { name : "d6-empty" , opacity : 1 } ) ;
478+ } ) ;
479+
455480 it ( "partial die selection keeps dice pips visible when emulated" , ( ) => {
456481 const g = playFixture ( [
457482 [ "e5" , { owner : 1 , face : 16 } ] ,
0 commit comments