@@ -169,11 +169,11 @@ describe('<AddComponent />', () => {
169
169
it ( 'creates new "Library" xblock on click' , ( ) => {
170
170
const { getByRole } = renderComponent ( ) ;
171
171
172
- const discussionButton = getByRole ( 'button' , {
172
+ const libraryButton = getByRole ( 'button' , {
173
173
name : new RegExp ( `${ messages . buttonText . defaultMessage } Library Content` , 'i' ) ,
174
174
} ) ;
175
175
176
- userEvent . click ( discussionButton ) ;
176
+ userEvent . click ( libraryButton ) ;
177
177
expect ( handleCreateNewCourseXBlockMock ) . toHaveBeenCalled ( ) ;
178
178
expect ( handleCreateNewCourseXBlockMock ) . toHaveBeenCalledWith ( {
179
179
parentLocator : '123' ,
@@ -293,11 +293,11 @@ describe('<AddComponent />', () => {
293
293
294
294
it ( 'verifies "Text" component creation and submission in modal' , ( ) => {
295
295
const { getByRole } = renderComponent ( ) ;
296
- const advancedButton = getByRole ( 'button' , {
296
+ const textButton = getByRole ( 'button' , {
297
297
name : new RegExp ( `${ messages . buttonText . defaultMessage } Text` , 'i' ) ,
298
298
} ) ;
299
299
300
- userEvent . click ( advancedButton ) ;
300
+ userEvent . click ( textButton ) ;
301
301
const modalContainer = getByRole ( 'dialog' ) ;
302
302
303
303
const radioInput = within ( modalContainer ) . getByRole ( 'radio' , { name : 'Text' } ) ;
@@ -319,11 +319,11 @@ describe('<AddComponent />', () => {
319
319
320
320
it ( 'verifies "Open Response" component creation and submission in modal' , ( ) => {
321
321
const { getByRole } = renderComponent ( ) ;
322
- const advancedButton = getByRole ( 'button' , {
322
+ const openResponseButton = getByRole ( 'button' , {
323
323
name : new RegExp ( `${ messages . buttonText . defaultMessage } Open Response` , 'i' ) ,
324
324
} ) ;
325
325
326
- userEvent . click ( advancedButton ) ;
326
+ userEvent . click ( openResponseButton ) ;
327
327
const modalContainer = getByRole ( 'dialog' ) ;
328
328
329
329
const radioInput = within ( modalContainer ) . getByRole ( 'radio' , { name : 'Peer Assessment Only' } ) ;
0 commit comments