5
5
render ,
6
6
fireEvent ,
7
7
screen ,
8
- waitFor ,
9
8
} from '@testing-library/react' ;
10
9
import { IntlProvider } from '@edx/frontend-platform/i18n' ;
11
10
import { AppProvider } from '@edx/frontend-platform/react' ;
@@ -43,7 +42,6 @@ const pageAlertsData = {
43
42
notificationDismissUrl : '' ,
44
43
handleDismissNotification : null ,
45
44
discussionsSettings : { } ,
46
- discussionsIncontextFeedbackUrl : '' ,
47
45
discussionsIncontextLearnmoreUrl : '' ,
48
46
deprecatedBlocksInfo : { } ,
49
47
proctoringErrors : [ ] ,
@@ -102,7 +100,6 @@ describe('<PageAlerts />', () => {
102
100
discussionsSettings : {
103
101
providerType : 'openedx' ,
104
102
} ,
105
- discussionsIncontextFeedbackUrl : 'some-feedback-url' ,
106
103
discussionsIncontextLearnmoreUrl : 'some-learn-more-url' ,
107
104
} ) ;
108
105
@@ -115,12 +112,6 @@ describe('<PageAlerts />', () => {
115
112
fireEvent . click ( dismissBtn ) ;
116
113
const discussionAlertDismissKey = `discussionAlertDismissed-${ pageAlertsData . courseId } ` ;
117
114
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
- } ) ;
124
115
} ) ;
125
116
126
117
it ( 'renders deprecation warning alerts' , async ( ) => {
0 commit comments