@@ -46,9 +46,9 @@ describe('CourseChecklistPage', () => {
4646 } ) ;
4747 describe ( 'renders' , ( ) => {
4848 describe ( 'if enable_quality prop is true' , ( ) => {
49- it ( 'two checklist components ' , ( ) => {
49+ it ( 'two checklist components ' , async ( ) => {
5050 renderComponent ( ) ;
51- mockStore ( 200 ) ;
51+ await mockStore ( 200 ) ;
5252
5353 expect ( screen . getByText ( messages . launchChecklistLabel . defaultMessage ) ) . toBeVisible ( ) ;
5454
@@ -67,7 +67,7 @@ describe('CourseChecklistPage', () => {
6767
6868 it ( 'correct content when the launch checklist has loaded' , async ( ) => {
6969 renderComponent ( ) ;
70- mockStore ( 404 ) ;
70+ await mockStore ( 404 ) ;
7171 await waitFor ( ( ) => {
7272 const { launchChecklistStatus } = store . getState ( ) . courseChecklist . loadingStatus ;
7373
@@ -79,7 +79,7 @@ describe('CourseChecklistPage', () => {
7979
8080 it ( 'correct content when the best practices checklist is loading' , async ( ) => {
8181 renderComponent ( ) ;
82- mockStore ( 404 ) ;
82+ await mockStore ( 404 ) ;
8383 await waitFor ( ( ) => {
8484 const { bestPracticeChecklistStatus } = store . getState ( ) . courseChecklist . loadingStatus ;
8585
@@ -100,9 +100,9 @@ describe('CourseChecklistPage', () => {
100100 } ) ;
101101 } ) ;
102102
103- it ( 'one checklist components ' , ( ) => {
103+ it ( 'one checklist components ' , async ( ) => {
104104 renderComponent ( ) ;
105- mockStore ( 200 ) ;
105+ await mockStore ( 200 ) ;
106106
107107 expect ( screen . getByText ( messages . launchChecklistLabel . defaultMessage ) ) . toBeVisible ( ) ;
108108
@@ -112,7 +112,7 @@ describe('CourseChecklistPage', () => {
112112 describe ( 'an aria-live region with' , ( ) => {
113113 it ( 'correct content when the launch checklist has loaded' , async ( ) => {
114114 renderComponent ( ) ;
115- mockStore ( 404 ) ;
115+ await mockStore ( 404 ) ;
116116 await waitFor ( ( ) => {
117117 const { launchChecklistStatus } = store . getState ( ) . courseChecklist . loadingStatus ;
118118
@@ -124,7 +124,7 @@ describe('CourseChecklistPage', () => {
124124
125125 it ( 'correct content when the best practices checklist is loading' , async ( ) => {
126126 renderComponent ( ) ;
127- mockStore ( 404 ) ;
127+ await mockStore ( 404 ) ;
128128 await waitFor ( ( ) => {
129129 const { bestPracticeChecklistStatus } = store . getState ( ) . courseChecklist . loadingStatus ;
130130
0 commit comments