From bea1619537d875859ec84cb2b1651d005314bf9c Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 23 Jan 2026 23:00:25 +0000 Subject: [PATCH] chore(deps): update dependency @openedx/paragon to v23.19.1 (#2765) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package-lock.json | 6 +++--- src/course-unit/move-modal/index.tsx | 1 - src/course-unit/move-modal/moveModal.test.tsx | 13 +++++++++---- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index e13dcd92b..4dd99cf42 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7340,9 +7340,9 @@ } }, "node_modules/@openedx/paragon": { - "version": "23.18.1", - "resolved": "https://registry.npmjs.org/@openedx/paragon/-/paragon-23.18.1.tgz", - "integrity": "sha512-3bp85pqrQt+NlHpOJ4q8Hlqk/dEhM9YigzKj+0hDnWeBd3kh9fuVLcirchnjMS/845fwFKhtJVSW0Bidc3rM/Q==", + "version": "23.19.1", + "resolved": "https://registry.npmjs.org/@openedx/paragon/-/paragon-23.19.1.tgz", + "integrity": "sha512-c/cWnvZsGS7xyq0tJpssmv2oyfYG6Fuawy6EzWy8CYiQ4oD67EVuSwBInCfSJoNZhvvkUE+4B/YhDIRGUVDz5w==", "license": "Apache-2.0", "peer": true, "workspaces": [ diff --git a/src/course-unit/move-modal/index.tsx b/src/course-unit/move-modal/index.tsx index c25907768..5168d54e9 100644 --- a/src/course-unit/move-modal/index.tsx +++ b/src/course-unit/move-modal/index.tsx @@ -44,7 +44,6 @@ const MoveModal: FC = ({ const renderBreadcrumbs = useCallback(() => ( ( { label: breadcrumb, 'data-parent-index': index } diff --git a/src/course-unit/move-modal/moveModal.test.tsx b/src/course-unit/move-modal/moveModal.test.tsx index 0fe83d85a..4daca485c 100644 --- a/src/course-unit/move-modal/moveModal.test.tsx +++ b/src/course-unit/move-modal/moveModal.test.tsx @@ -1,5 +1,10 @@ import MockAdapter from 'axios-mock-adapter'; -import { render, waitFor, within } from '@testing-library/react'; +import { + render, + screen, + waitFor, + within, +} from '@testing-library/react'; import { AppProvider } from '@edx/frontend-platform/react'; import { IntlProvider } from '@edx/frontend-platform/i18n'; import { camelCaseObject, initializeMockApp } from '@edx/frontend-platform'; @@ -76,7 +81,7 @@ describe('', () => { it('renders component properly', async () => { const user = userEvent.setup(); const { getByText, getByRole, getByTestId } = renderComponent(); - const breadcrumbs: HTMLElement = getByTestId('move-xblock-modal-breadcrumbs'); + const breadcrumbs: HTMLElement = screen.getByLabelText('Course Outline breadcrumb'); const categoryIndicator: HTMLElement = getByTestId('move-xblock-modal-category'); expect(getByText(messages.moveModalTitle.defaultMessage.replace(' {displayName}', ''))).toBeInTheDocument(); @@ -96,7 +101,7 @@ describe('', () => { it('correctly navigates through the structure list', async () => { const user = userEvent.setup(); const { getByText, getByRole, getByTestId } = renderComponent(); - const breadcrumbs: HTMLElement = getByTestId('move-xblock-modal-breadcrumbs'); + const breadcrumbs: HTMLElement = screen.getByLabelText('Course Outline breadcrumb'); const categoryIndicator: HTMLElement = getByTestId('move-xblock-modal-category'); expect( @@ -145,7 +150,7 @@ describe('', () => { it('correctly navigates using breadcrumbs', async () => { const user = userEvent.setup(); const { getByRole, findByRole, getByTestId } = renderComponent(); - const breadcrumbs: HTMLElement = getByTestId('move-xblock-modal-breadcrumbs'); + const breadcrumbs: HTMLElement = screen.getByLabelText('Course Outline breadcrumb'); const categoryIndicator: HTMLElement = getByTestId('move-xblock-modal-category'); await user.click(await findByRole('button', { name: new RegExp(sections[1].displayName, 'i') }));