55 render ,
66 fireEvent ,
77 screen ,
8- waitFor ,
98} from '@testing-library/react' ;
109import { IntlProvider } from '@edx/frontend-platform/i18n' ;
1110import { AppProvider } from '@edx/frontend-platform/react' ;
@@ -43,7 +42,6 @@ const pageAlertsData = {
4342 notificationDismissUrl : '' ,
4443 handleDismissNotification : null ,
4544 discussionsSettings : { } ,
46- discussionsIncontextFeedbackUrl : '' ,
4745 discussionsIncontextLearnmoreUrl : '' ,
4846 deprecatedBlocksInfo : { } ,
4947 proctoringErrors : [ ] ,
@@ -102,7 +100,6 @@ describe('<PageAlerts />', () => {
102100 discussionsSettings : {
103101 providerType : 'openedx' ,
104102 } ,
105- discussionsIncontextFeedbackUrl : 'some-feedback-url' ,
106103 discussionsIncontextLearnmoreUrl : 'some-learn-more-url' ,
107104 } ) ;
108105
@@ -115,12 +112,6 @@ describe('<PageAlerts />', () => {
115112 fireEvent . click ( dismissBtn ) ;
116113 const discussionAlertDismissKey = `discussionAlertDismissed-${ pageAlertsData . courseId } ` ;
117114 expect ( localStorage . getItem ( discussionAlertDismissKey ) ) . toBe ( 'true' ) ;
118-
119- await waitFor ( ( ) => {
120- const feedbackLink = screen . queryByText ( messages . discussionNotificationFeedback . defaultMessage ) ;
121- expect ( feedbackLink ) . toBeInTheDocument ( ) ;
122- expect ( feedbackLink ) . toHaveAttribute ( 'href' , 'some-feedback-url' ) ;
123- } ) ;
124115 } ) ;
125116
126117 it ( 'renders deprecation warning alerts' , async ( ) => {
0 commit comments