fix: incorrectly named plugin slots (#1388)

This commit is contained in:
Zachary Hancock
2024-05-16 10:24:27 -04:00
committed by GitHub
parent cc041ba348
commit f124c0d491
4 changed files with 6 additions and 6 deletions

View File

@@ -196,7 +196,7 @@ const OutlineTab = ({ intl }) => {
)}
<CourseTools />
<PluginSlot
id="outline_tab_notifications_plugin"
id="outline_tab_notifications_slot"
pluginProps={{ courseId }}
>
<UpgradeNotification

View File

@@ -132,14 +132,14 @@ describe('Outline Tab', () => {
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 () => {

View File

@@ -79,7 +79,7 @@ const NotificationTray = ({ intl }) => {
<div>{verifiedMode
? (
<PluginSlot
id="notification_tray_plugin"
id="notification_tray_slot"
pluginProps={{
courseId,
notificationCurrentState: upgradeNotificationCurrentState,

View File

@@ -81,7 +81,7 @@ describe('NotificationTray', () => {
.toBeInTheDocument();
});
it('includes notification_tray_plugin slot', async () => {
it('includes notification_tray_slot', async () => {
await fetchAndRender(
<SidebarContext.Provider value={{
currentSidebar: ID,
@@ -91,7 +91,7 @@ describe('NotificationTray', () => {
<NotificationTray />
</SidebarContext.Provider>,
);
expect(screen.getByTestId('notification_tray_plugin')).toBeInTheDocument();
expect(screen.getByTestId('notification_tray_slot')).toBeInTheDocument();
});
it('renders upgrade card', async () => {