diff --git a/src/course-outline/CourseOutline.test.jsx b/src/course-outline/CourseOutline.test.jsx index 3aca2e8654..b68c3c715b 100644 --- a/src/course-outline/CourseOutline.test.jsx +++ b/src/course-outline/CourseOutline.test.jsx @@ -132,6 +132,7 @@ describe('', () => { element = await findAllByTestId('section-card'); expect(element.length).toBe(5); + expect(window.HTMLElement.prototype.scrollIntoView).toBeCalled(); }); it('render error alert after failed reindex correctly', async () => {