@@ -62,7 +62,7 @@ describe('CourseChecklistPage', () => {
6262 describe ( 'if enable_quality prop is true' , ( ) => {
6363 it ( 'two checklist components ' , ( ) => {
6464 renderComponent ( ) ;
65- mockStore ( 200 ) ;
65+ await mockStore ( 200 ) ;
6666
6767 expect ( screen . getByText ( messages . launchChecklistLabel . defaultMessage ) ) . toBeVisible ( ) ;
6868
@@ -81,7 +81,7 @@ describe('CourseChecklistPage', () => {
8181
8282 it ( 'correct content when the launch checklist has loaded' , async ( ) => {
8383 renderComponent ( ) ;
84- mockStore ( 404 ) ;
84+ await mockStore ( 404 ) ;
8585 await waitFor ( ( ) => {
8686 const { launchChecklistStatus } = store . getState ( ) . courseChecklist . loadingStatus ;
8787
@@ -93,7 +93,7 @@ describe('CourseChecklistPage', () => {
9393
9494 it ( 'correct content when the best practices checklist is loading' , async ( ) => {
9595 renderComponent ( ) ;
96- mockStore ( 404 ) ;
96+ await mockStore ( 404 ) ;
9797 await waitFor ( ( ) => {
9898 const { bestPracticeChecklistStatus } = store . getState ( ) . courseChecklist . loadingStatus ;
9999
@@ -114,9 +114,9 @@ describe('CourseChecklistPage', () => {
114114 } ) ;
115115 } ) ;
116116
117- it ( 'one checklist components ' , ( ) => {
117+ it ( 'one checklist components ' , async ( ) => {
118118 renderComponent ( ) ;
119- mockStore ( 200 ) ;
119+ await mockStore ( 200 ) ;
120120
121121 expect ( screen . getByText ( messages . launchChecklistLabel . defaultMessage ) ) . toBeVisible ( ) ;
122122
@@ -126,7 +126,7 @@ describe('CourseChecklistPage', () => {
126126 describe ( 'an aria-live region with' , ( ) => {
127127 it ( 'correct content when the launch checklist has loaded' , async ( ) => {
128128 renderComponent ( ) ;
129- mockStore ( 404 ) ;
129+ await mockStore ( 404 ) ;
130130 await waitFor ( ( ) => {
131131 const { launchChecklistStatus } = store . getState ( ) . courseChecklist . loadingStatus ;
132132
@@ -138,7 +138,7 @@ describe('CourseChecklistPage', () => {
138138
139139 it ( 'correct content when the best practices checklist is loading' , async ( ) => {
140140 renderComponent ( ) ;
141- mockStore ( 404 ) ;
141+ await mockStore ( 404 ) ;
142142 await waitFor ( ( ) => {
143143 const { bestPracticeChecklistStatus } = store . getState ( ) . courseChecklist . loadingStatus ;
144144
0 commit comments