From 8d32a63ba4af0fdd733f42be15fc7729f92f7686 Mon Sep 17 00:00:00 2001 From: Zacharis278 Date: Thu, 16 May 2024 08:59:09 -0400 Subject: [PATCH] fix: incorrectly named plugin slots --- src/course-home/outline-tab/OutlineTab.jsx | 2 +- src/course-home/outline-tab/OutlineTab.test.jsx | 4 ++-- .../sidebar/sidebars/notifications/NotificationTray.jsx | 2 +- .../sidebar/sidebars/notifications/NotificationTray.test.jsx | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/course-home/outline-tab/OutlineTab.jsx b/src/course-home/outline-tab/OutlineTab.jsx index de900251be..ca26155f82 100644 --- a/src/course-home/outline-tab/OutlineTab.jsx +++ b/src/course-home/outline-tab/OutlineTab.jsx @@ -196,7 +196,7 @@ const OutlineTab = ({ intl }) => { )} { expect(expandedSectionNode).toHaveAttribute('aria-expanded', 'true'); }); - it('includes outline_tab_notifications_plugin slot', async () => { + it('includes outline_tab_notifications_slot', async () => { const { courseBlocks } = await buildMinimalCourseBlocks(courseId, 'Title', { resumeBlock: true }); setTabData({ course_blocks: { blocks: courseBlocks.blocks }, }); await fetchAndRender(); - expect(screen.getByTestId('outline_tab_notifications_plugin')).toBeInTheDocument(); + expect(screen.getByTestId('outline_tab_notifications_slot')).toBeInTheDocument(); }); it('handles expand/collapse all button click', async () => { diff --git a/src/courseware/course/sidebar/sidebars/notifications/NotificationTray.jsx b/src/courseware/course/sidebar/sidebars/notifications/NotificationTray.jsx index 9fe8d1ad21..591baad27e 100644 --- a/src/courseware/course/sidebar/sidebars/notifications/NotificationTray.jsx +++ b/src/courseware/course/sidebar/sidebars/notifications/NotificationTray.jsx @@ -79,7 +79,7 @@ const NotificationTray = ({ intl }) => {
{verifiedMode ? ( { .toBeInTheDocument(); }); - it('includes notification_tray_plugin slot', async () => { + it('includes notification_tray_slot', async () => { await fetchAndRender( { , ); - expect(screen.getByTestId('notification_tray_plugin')).toBeInTheDocument(); + expect(screen.getByTestId('notification_tray_slot')).toBeInTheDocument(); }); it('renders upgrade card', async () => {