@@ -24,7 +24,7 @@ function createMountActionPanel(props) {
2424 { } ,
2525 {
2626 focusedOptionName : null ,
27- selectedCommandName : 'right45' ,
27+ selectedActionName : 'right45' ,
2828 programSequence : new ProgramSequence (
2929 [
3030 { block : 'forward1' } ,
@@ -101,10 +101,10 @@ describe('ActionPanel options', () => {
101101 test ( 'Given that there is no selected action, then the Replace button should be disabled' , ( ) => {
102102 const { wrapper } = createMountActionPanel ( {
103103 pressedStepIndex : 1 ,
104- selectedCommandName : null
104+ selectedActionName : null
105105 } ) ;
106106 const replaceButton = getActionPanelOptionButtons ( wrapper , 'replaceCurrentStep' ) ;
107- const expectedAriaLabel = 'Replace Step 2 turn left 45 degrees ' ;
107+ const expectedAriaLabel = 'Replace Step 2 turn left 45 degrees' ;
108108 expect ( replaceButton . get ( 0 ) . props [ 'aria-label' ] ) . toBe ( expectedAriaLabel ) ;
109109 expect ( replaceButton . get ( 0 ) . props [ 'disabled' ] ) . toBe ( true ) ;
110110 } ) ;
@@ -127,7 +127,7 @@ describe('ActionPanel options', () => {
127127 pressedStepIndex : 0
128128 } ) ;
129129 const moveToPreviousStepButton = getActionPanelOptionButtons ( wrapper , 'moveToPreviousStep' ) ;
130- const expectedAriaLabel = 'Move Step 1 forward 1 square ' ;
130+ const expectedAriaLabel = 'Move Step 1 forward 1 square' ;
131131 expect ( moveToPreviousStepButton . get ( 0 ) . props [ 'aria-label' ] ) . toBe ( expectedAriaLabel ) ;
132132 expect ( moveToPreviousStepButton . get ( 0 ) . props [ 'disabled' ] ) . toBe ( true ) ;
133133 moveToPreviousStepButton . simulate ( 'click' ) ;
@@ -150,7 +150,7 @@ describe('ActionPanel options', () => {
150150 pressedStepIndex : 0
151151 } ) ;
152152 const moveToPreviousStepButton = getActionPanelOptionButtons ( wrapper , 'moveToPreviousStep' ) ;
153- const expectedAriaLabel = "Move Step 1 loop A " ;
153+ const expectedAriaLabel = "Move Step 1 loop A" ;
154154 expect ( moveToPreviousStepButton . get ( 0 ) . props [ 'disabled' ] ) . toBe ( true ) ;
155155 moveToPreviousStepButton . simulate ( 'click' ) ;
156156 expect ( moveToPreviousStepButton . get ( 0 ) . props [ 'aria-label' ] ) . toBe ( expectedAriaLabel ) ;
@@ -173,7 +173,7 @@ describe('ActionPanel options', () => {
173173 pressedStepIndex : 2
174174 } ) ;
175175 const moveToPreviousStepButton = getActionPanelOptionButtons ( wrapper , 'moveToPreviousStep' ) ;
176- const expectedAriaLabel = "Move Step 3 loop A " ;
176+ const expectedAriaLabel = "Move Step 3 loop A" ;
177177 expect ( moveToPreviousStepButton . get ( 0 ) . props [ 'disabled' ] ) . toBe ( true ) ;
178178 moveToPreviousStepButton . simulate ( 'click' ) ;
179179 expect ( moveToPreviousStepButton . get ( 0 ) . props [ 'aria-label' ] ) . toBe ( expectedAriaLabel ) ;
@@ -328,7 +328,7 @@ describe('ActionPanel options', () => {
328328 pressedStepIndex : 2
329329 } ) ;
330330 const moveToNextStepButton = getActionPanelOptionButtons ( wrapper , 'moveToNextStep' ) ;
331- const expectedAriaLabel = 'Move Step 3 turn right 45 degrees ' ;
331+ const expectedAriaLabel = 'Move Step 3 turn right 45 degrees' ;
332332 expect ( moveToNextStepButton . get ( 0 ) . props [ 'aria-label' ] ) . toBe ( expectedAriaLabel ) ;
333333 expect ( moveToNextStepButton . get ( 0 ) . props [ 'disabled' ] ) . toBe ( true ) ;
334334 moveToNextStepButton . simulate ( 'click' ) ;
@@ -351,7 +351,7 @@ describe('ActionPanel options', () => {
351351 pressedStepIndex : 0
352352 } ) ;
353353 const moveToNextStepButton = getActionPanelOptionButtons ( wrapper , 'moveToNextStep' ) ;
354- const expectedAriaLabel = "Move Step 1 loop A " ;
354+ const expectedAriaLabel = "Move Step 1 loop A" ;
355355 expect ( moveToNextStepButton . get ( 0 ) . props [ 'disabled' ] ) . toBe ( true ) ;
356356 moveToNextStepButton . simulate ( 'click' ) ;
357357 expect ( moveToNextStepButton . get ( 0 ) . props [ 'aria-label' ] ) . toBe ( expectedAriaLabel ) ;
@@ -374,7 +374,7 @@ describe('ActionPanel options', () => {
374374 pressedStepIndex : 2
375375 } ) ;
376376 const moveToNextStepButton = getActionPanelOptionButtons ( wrapper , 'moveToNextStep' ) ;
377- const expectedAriaLabel = "Move Step 3 loop A " ;
377+ const expectedAriaLabel = "Move Step 3 loop A" ;
378378 expect ( moveToNextStepButton . get ( 0 ) . props [ 'disabled' ] ) . toBe ( true ) ;
379379 moveToNextStepButton . simulate ( 'click' ) ;
380380 expect ( moveToNextStepButton . get ( 0 ) . props [ 'aria-label' ] ) . toBe ( expectedAriaLabel ) ;
0 commit comments