chore(deps): update dependency @openedx/paragon to v23.19.1 (#2765)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
6
package-lock.json
generated
6
package-lock.json
generated
@@ -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": [
|
||||
|
||||
@@ -44,7 +44,6 @@ const MoveModal: FC<IUseMoveModalParams> = ({
|
||||
const renderBreadcrumbs = useCallback(() => (
|
||||
<Breadcrumb
|
||||
ariaLabel={intl.formatMessage(messages.moveModalBreadcrumbsLabel)}
|
||||
data-testid="move-xblock-modal-breadcrumbs"
|
||||
isMobile={isExtraSmall}
|
||||
links={breadcrumbs.slice(0, -1).map((breadcrumb, index) => (
|
||||
{ label: breadcrumb, 'data-parent-index': index }
|
||||
|
||||
@@ -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('<MoveModal />', () => {
|
||||
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('<MoveModal />', () => {
|
||||
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('<MoveModal />', () => {
|
||||
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') }));
|
||||
|
||||
Reference in New Issue
Block a user