@@ -10,7 +10,6 @@ import { panelNames } from 'src/constants/panel';
1010import { PRESET_BUTTON_TYPES } from 'constants/customizationVariables' ;
1111import DataElements from 'constants/dataElement' ;
1212import { defaultFlyoutMap } from 'src/redux/modularComponents' ;
13- import { getTranslatedText } from 'src/helpers/testTranslationHelper' ;
1413
1514export default {
1615 title : 'ModularComponents/ViewOnly' ,
@@ -185,12 +184,12 @@ ViewOnlyWhitelist.play = async ({ canvasElement }) => {
185184
186185 // Annotate ribbon should not show header since no buttons are whitelisted
187186 const canvas = within ( canvasElement ) ;
188- await canvas . getByRole ( 'button' , { name : getTranslatedText ( 'option.toolbarGroup.toolbarGroup- Annotate') } ) . click ( ) ;
187+ await canvas . getByRole ( 'button' , { name : ' Annotate' } ) . click ( ) ;
189188 const headers = await canvas . findAllByRole ( 'toolbar' ) ;
190189 expect ( headers . length ) . toBe ( 1 ) ;
191190
192- await canvas . getByRole ( 'button' , { name : getTranslatedText ( 'option.toolbarGroup.toolbarGroup- Shapes') } ) . click ( ) ;
193- await expect ( await canvas . findByRole ( 'button' , { name : getTranslatedText ( 'annotation.ellipse' ) } ) ) . toBeInTheDocument ( ) ;
191+ await canvas . getByRole ( 'button' , { name : ' Shapes' } ) . click ( ) ;
192+ await expect ( await canvas . findByRole ( 'button' , { name : 'Ellipse' } ) ) . toBeInTheDocument ( ) ;
194193
195194 // should be able to update hotkeys whitelist
196195 window . instance . UI . updateViewOnlyShortcuts ( [ window . instance . UI . Shortcuts . RECTANGLE ] ) ;
0 commit comments