File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2542,7 +2542,7 @@ describe('<CourseUnit />', () => {
25422542 } ) ;
25432543 await executeThunk ( fetchCourseSectionVerticalData ( courseId ) , store . dispatch ) ;
25442544
2545- expect ( screen . getByText ( / t h i s u n i t c a n o n l y b e e d i t e d f r o m t h e \. / i ) ) . toBeInTheDocument ( ) ;
2545+ expect ( screen . getByText ( messages . alertLibraryUnitReadOnlyLinkText . defaultMessage ) ) . toBeInTheDocument ( ) ;
25462546
25472547 // Edit button should be enabled even for library imported units
25482548 const unitHeaderTitle = screen . getByTestId ( 'unit-header-title' ) ;
@@ -3446,7 +3446,7 @@ describe('<CourseUnit />', () => {
34463446 } ) ;
34473447 await executeThunk ( fetchCourseSectionVerticalData ( courseId ) , store . dispatch ) ;
34483448
3449- expect ( screen . getByText ( / t h i s u n i t c a n o n l y b e e d i t e d f r o m t h e \. / i ) ) . toBeInTheDocument ( ) ;
3449+ expect ( screen . getByText ( messages . alertLibraryUnitReadOnlyLinkText . defaultMessage ) ) . toBeInTheDocument ( ) ;
34503450
34513451 // Does not render the "Add Components" section
34523452 expect ( screen . queryByText ( addComponentMessages . title . defaultMessage ) ) . not . toBeInTheDocument ( ) ;
You can’t perform that action at this time.
0 commit comments