@patternfly/react-core 5.3.0-prerelease.16 → 5.3.0-prerelease.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/components/package.json +1 -1
- package/deprecated/package.json +1 -1
- package/dist/dynamic/components/AboutModal/package.json +1 -1
- package/dist/dynamic/components/Accordion/package.json +1 -1
- package/dist/dynamic/components/ActionList/package.json +1 -1
- package/dist/dynamic/components/Alert/package.json +1 -1
- package/dist/dynamic/components/Avatar/package.json +1 -1
- package/dist/dynamic/components/BackToTop/package.json +1 -1
- package/dist/dynamic/components/Backdrop/package.json +1 -1
- package/dist/dynamic/components/BackgroundImage/package.json +1 -1
- package/dist/dynamic/components/Badge/package.json +1 -1
- package/dist/dynamic/components/Banner/package.json +1 -1
- package/dist/dynamic/components/Brand/package.json +1 -1
- package/dist/dynamic/components/Breadcrumb/package.json +1 -1
- package/dist/dynamic/components/Button/package.json +1 -1
- package/dist/dynamic/components/CalendarMonth/package.json +1 -1
- package/dist/dynamic/components/Card/package.json +1 -1
- package/dist/dynamic/components/Checkbox/package.json +1 -1
- package/dist/dynamic/components/Chip/package.json +1 -1
- package/dist/dynamic/components/ClipboardCopy/package.json +1 -1
- package/dist/dynamic/components/CodeBlock/package.json +1 -1
- package/dist/dynamic/components/DataList/package.json +1 -1
- package/dist/dynamic/components/DatePicker/package.json +1 -1
- package/dist/dynamic/components/DescriptionList/package.json +1 -1
- package/dist/dynamic/components/Divider/package.json +1 -1
- package/dist/dynamic/components/DragDrop/package.json +1 -1
- package/dist/dynamic/components/Drawer/package.json +1 -1
- package/dist/dynamic/components/Dropdown/package.json +1 -1
- package/dist/dynamic/components/DualListSelector/package.json +1 -1
- package/dist/dynamic/components/EmptyState/package.json +1 -1
- package/dist/dynamic/components/ExpandableSection/package.json +1 -1
- package/dist/dynamic/components/FileUpload/package.json +1 -1
- package/dist/dynamic/components/Form/package.json +1 -1
- package/dist/dynamic/components/FormSelect/package.json +1 -1
- package/dist/dynamic/components/HelperText/package.json +1 -1
- package/dist/dynamic/components/Hint/package.json +1 -1
- package/dist/dynamic/components/Icon/package.json +1 -1
- package/dist/dynamic/components/InputGroup/package.json +1 -1
- package/dist/dynamic/components/JumpLinks/package.json +1 -1
- package/dist/dynamic/components/Label/package.json +1 -1
- package/dist/dynamic/components/List/package.json +1 -1
- package/dist/dynamic/components/LoginPage/package.json +1 -1
- package/dist/dynamic/components/Masthead/package.json +1 -1
- package/dist/dynamic/components/Menu/package.json +1 -1
- package/dist/dynamic/components/MenuToggle/package.json +1 -1
- package/dist/dynamic/components/Modal/package.json +1 -1
- package/dist/dynamic/components/MultipleFileUpload/package.json +1 -1
- package/dist/dynamic/components/Nav/package.json +1 -1
- package/dist/dynamic/components/NotificationBadge/package.json +1 -1
- package/dist/dynamic/components/NotificationDrawer/package.json +1 -1
- package/dist/dynamic/components/NumberInput/package.json +1 -1
- package/dist/dynamic/components/OverflowMenu/package.json +1 -1
- package/dist/dynamic/components/Page/package.json +1 -1
- package/dist/dynamic/components/Pagination/package.json +1 -1
- package/dist/dynamic/components/Panel/package.json +1 -1
- package/dist/dynamic/components/Popover/package.json +1 -1
- package/dist/dynamic/components/Progress/package.json +1 -1
- package/dist/dynamic/components/ProgressStepper/package.json +1 -1
- package/dist/dynamic/components/Radio/package.json +1 -1
- package/dist/dynamic/components/SearchInput/package.json +1 -1
- package/dist/dynamic/components/Select/package.json +1 -1
- package/dist/dynamic/components/Sidebar/package.json +1 -1
- package/dist/dynamic/components/SimpleList/package.json +1 -1
- package/dist/dynamic/components/Skeleton/package.json +1 -1
- package/dist/dynamic/components/SkipToContent/package.json +1 -1
- package/dist/dynamic/components/Slider/package.json +1 -1
- package/dist/dynamic/components/Spinner/package.json +1 -1
- package/dist/dynamic/components/Switch/package.json +1 -1
- package/dist/dynamic/components/Tabs/package.json +1 -1
- package/dist/dynamic/components/Text/package.json +1 -1
- package/dist/dynamic/components/TextArea/package.json +1 -1
- package/dist/dynamic/components/TextInput/package.json +1 -1
- package/dist/dynamic/components/TextInputGroup/package.json +1 -1
- package/dist/dynamic/components/Tile/package.json +1 -1
- package/dist/dynamic/components/TimePicker/package.json +1 -1
- package/dist/dynamic/components/Timestamp/package.json +1 -1
- package/dist/dynamic/components/Title/package.json +1 -1
- package/dist/dynamic/components/ToggleGroup/package.json +1 -1
- package/dist/dynamic/components/Toolbar/package.json +1 -1
- package/dist/dynamic/components/Tooltip/package.json +1 -1
- package/dist/dynamic/components/TreeView/package.json +1 -1
- package/dist/dynamic/components/Truncate/package.json +1 -1
- package/dist/dynamic/components/Wizard/hooks/package.json +1 -1
- package/dist/dynamic/components/Wizard/package.json +1 -1
- package/dist/dynamic/deprecated/components/ApplicationLauncher/package.json +1 -1
- package/dist/dynamic/deprecated/components/ContextSelector/package.json +1 -1
- package/dist/dynamic/deprecated/components/Dropdown/package.json +1 -1
- package/dist/dynamic/deprecated/components/OptionsMenu/package.json +1 -1
- package/dist/dynamic/deprecated/components/PageHeader/package.json +1 -1
- package/dist/dynamic/deprecated/components/Select/package.json +1 -1
- package/dist/dynamic/deprecated/components/Wizard/package.json +1 -1
- package/dist/dynamic/deprecated/components/package.json +1 -1
- package/dist/dynamic/helpers/FocusTrap/FocusTrap/package.json +1 -1
- package/dist/dynamic/helpers/GenerateId/GenerateId/package.json +1 -1
- package/dist/dynamic/helpers/KeyboardHandler/package.json +1 -1
- package/dist/dynamic/helpers/OUIA/ouia/package.json +1 -1
- package/dist/dynamic/helpers/Popper/Popper/package.json +1 -1
- package/dist/dynamic/helpers/constants/package.json +1 -1
- package/dist/dynamic/helpers/datetimeUtils/package.json +1 -1
- package/dist/dynamic/helpers/favorites/package.json +1 -1
- package/dist/dynamic/helpers/fileUtils/package.json +1 -1
- package/dist/dynamic/helpers/htmlConstants/package.json +1 -1
- package/dist/dynamic/helpers/package.json +1 -1
- package/dist/dynamic/helpers/resizeObserver/package.json +1 -1
- package/dist/dynamic/helpers/typeUtils/package.json +1 -1
- package/dist/dynamic/helpers/useInterval/package.json +1 -1
- package/dist/dynamic/helpers/useIsomorphicLayout/package.json +1 -1
- package/dist/dynamic/helpers/useUnmountEffect/package.json +1 -1
- package/dist/dynamic/helpers/util/package.json +1 -1
- package/dist/dynamic/layouts/Bullseye/package.json +1 -1
- package/dist/dynamic/layouts/Flex/package.json +1 -1
- package/dist/dynamic/layouts/Gallery/package.json +1 -1
- package/dist/dynamic/layouts/Grid/package.json +1 -1
- package/dist/dynamic/layouts/Level/package.json +1 -1
- package/dist/dynamic/layouts/Split/package.json +1 -1
- package/dist/dynamic/layouts/Stack/package.json +1 -1
- package/dist/dynamic/next/components/DualListSelector/package.json +1 -1
- package/dist/dynamic/next/components/Modal/package.json +1 -1
- package/dist/dynamic/next/components/package.json +1 -1
- package/dist/dynamic/styles/package.json +1 -1
- package/dist/esm/helpers/GenerateId/GenerateId.d.ts +5 -1
- package/dist/esm/helpers/GenerateId/GenerateId.d.ts.map +1 -1
- package/dist/esm/helpers/GenerateId/GenerateId.js +14 -2
- package/dist/esm/helpers/GenerateId/GenerateId.js.map +1 -1
- package/dist/js/helpers/GenerateId/GenerateId.d.ts +5 -1
- package/dist/js/helpers/GenerateId/GenerateId.d.ts.map +1 -1
- package/dist/js/helpers/GenerateId/GenerateId.js +14 -2
- package/dist/js/helpers/GenerateId/GenerateId.js.map +1 -1
- package/dist/umd/react-core.min.js +1 -1
- package/helpers/package.json +1 -1
- package/layouts/package.json +1 -1
- package/next/package.json +1 -1
- package/package.json +2 -2
- package/src/components/Chip/__tests__/ChipGroup.test.tsx +3 -1
- package/src/components/ClipboardCopy/__tests__/ClipboardCopy.test.tsx +2 -0
- package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopy.test.tsx.snap +1 -1
- package/src/components/Drawer/__tests__/Drawer.test.tsx +2 -0
- package/src/components/Drawer/__tests__/DrawerPanelContent.test.tsx +2 -0
- package/src/components/Drawer/__tests__/Generated/DrawerPanelContent.test.tsx +2 -0
- package/src/components/Drawer/__tests__/Generated/__snapshots__/DrawerPanelContent.test.tsx.snap +1 -1
- package/src/components/Drawer/__tests__/__snapshots__/Drawer.test.tsx.snap +8 -8
- package/src/components/Form/__tests__/FormFieldGroup.test.tsx +2 -0
- package/src/components/Form/__tests__/FormSection.test.tsx +2 -0
- package/src/components/Form/__tests__/__snapshots__/FormFieldGroup.test.tsx.snap +2 -2
- package/src/components/Form/__tests__/__snapshots__/FormSection.test.tsx.snap +2 -2
- package/src/components/Label/__tests__/LabelGroup.test.tsx +2 -0
- package/src/components/Label/__tests__/__snapshots__/LabelGroup.test.tsx.snap +8 -8
- package/src/components/MultipleFileUpload/__tests__/MultipleFileUpload.test.tsx +2 -0
- package/src/components/MultipleFileUpload/__tests__/MultipleFileUploadStatus.test.tsx +2 -0
- package/src/components/MultipleFileUpload/__tests__/__snapshots__/MultipleFileUploadStatus.test.tsx.snap +16 -16
- package/src/components/SearchInput/__tests__/SearchInput.test.tsx +1 -0
- package/src/components/SearchInput/__tests__/__snapshots__/SearchInput.test.tsx.snap +2 -2
- package/src/components/Tabs/__tests__/Tabs.test.tsx +2 -0
- package/src/components/Tabs/__tests__/__snapshots__/Tabs.test.tsx.snap +3 -3
- package/src/components/Toolbar/__tests__/Toolbar.test.tsx +2 -0
- package/src/components/Toolbar/__tests__/__snapshots__/Toolbar.test.tsx.snap +11 -11
- package/src/deprecated/components/Select/__tests__/Select.test.tsx +2 -0
- package/src/deprecated/components/Select/__tests__/__snapshots__/Select.test.tsx.snap +25 -25
- package/src/helpers/GenerateId/GenerateId.ts +17 -3
- package/src/helpers/GenerateId/__mocks__/GenerateId.ts +11 -0
- package/src/helpers/GenerateId/__tests__/GenerateId.test.tsx +3 -1
package/helpers/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-core-helpers","main":"../dist/js/helpers/index.js","module":"../dist/esm/helpers/index.js","typings":"../dist/esm/helpers/index.d.ts","version":"5.3.0-prerelease.
|
|
1
|
+
{"name":"@patternfly/react-core-helpers","main":"../dist/js/helpers/index.js","module":"../dist/esm/helpers/index.js","typings":"../dist/esm/helpers/index.d.ts","version":"5.3.0-prerelease.16","private":true}
|
package/layouts/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-core-layouts","main":"../dist/js/layouts/index.js","module":"../dist/esm/layouts/index.js","typings":"../dist/esm/layouts/index.d.ts","version":"5.3.0-prerelease.
|
|
1
|
+
{"name":"@patternfly/react-core-layouts","main":"../dist/js/layouts/index.js","module":"../dist/esm/layouts/index.js","typings":"../dist/esm/layouts/index.d.ts","version":"5.3.0-prerelease.16","private":true}
|
package/next/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-core-next","main":"../dist/js/next/index.js","module":"../dist/esm/next/index.js","typings":"../dist/esm/next/index.d.ts","version":"5.3.0-prerelease.
|
|
1
|
+
{"name":"@patternfly/react-core-next","main":"../dist/js/next/index.js","module":"../dist/esm/next/index.js","typings":"../dist/esm/next/index.d.ts","version":"5.3.0-prerelease.16","private":true}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-core",
|
|
3
|
-
"version": "5.3.0-prerelease.
|
|
3
|
+
"version": "5.3.0-prerelease.17",
|
|
4
4
|
"description": "This library provides a set of common React components for use with the PatternFly reference implementation.",
|
|
5
5
|
"main": "dist/js/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"react": "^17 || ^18",
|
|
73
73
|
"react-dom": "^17 || ^18"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "c2b801e346348cb0d522244c1764c3d1f47a48a8"
|
|
76
76
|
}
|
|
@@ -7,6 +7,8 @@ import { ChipGroup } from '../index';
|
|
|
7
7
|
import { Chip } from '../../Chip';
|
|
8
8
|
import styles from '@patternfly/react-styles/css/components/Chip/chip-group';
|
|
9
9
|
|
|
10
|
+
jest.mock('../../../helpers/GenerateId/GenerateId');
|
|
11
|
+
|
|
10
12
|
test('chip group default', () => {
|
|
11
13
|
render(
|
|
12
14
|
<ChipGroup>
|
|
@@ -71,7 +73,7 @@ test('chip group has aria-labelledby attribute', () => {
|
|
|
71
73
|
<Chip>1.1</Chip>
|
|
72
74
|
</ChipGroup>
|
|
73
75
|
);
|
|
74
|
-
expect(screen.getByRole('group')).toHaveAttribute('aria-labelledby', expect.stringContaining(`
|
|
76
|
+
expect(screen.getByRole('group')).toHaveAttribute('aria-labelledby', expect.stringContaining(`generated-id`));
|
|
75
77
|
});
|
|
76
78
|
|
|
77
79
|
test('chip group has aria-labelledby attribute set to ID value', () => {
|
|
@@ -4,6 +4,8 @@ import { ClipboardCopy } from '../ClipboardCopy';
|
|
|
4
4
|
import styles from '@patternfly/react-styles/css/components/ClipboardCopy/clipboard-copy';
|
|
5
5
|
import userEvent from '@testing-library/user-event';
|
|
6
6
|
|
|
7
|
+
jest.mock('../../../helpers/GenerateId/GenerateId');
|
|
8
|
+
|
|
7
9
|
jest.mock('../ClipboardCopyButton', () => ({
|
|
8
10
|
ClipboardCopyButton: ({ 'aria-label': ariaLabel, children, entryDelay, exitDelay, maxWidth, position, onClick }) => (
|
|
9
11
|
<div data-testid="clipboardCopyButton-mock">
|
|
@@ -21,7 +21,7 @@ exports[`Matches snapshot 1`] = `
|
|
|
21
21
|
data-ouia-component-id="OUIA-Generated-TextInputBase-26"
|
|
22
22
|
data-ouia-component-type="PF5/TextInput"
|
|
23
23
|
data-ouia-safe="true"
|
|
24
|
-
id="text-input-
|
|
24
|
+
id="text-input-generated-id"
|
|
25
25
|
type="text"
|
|
26
26
|
value="Copyable text"
|
|
27
27
|
/>
|
|
@@ -14,6 +14,8 @@ import { render } from '@testing-library/react';
|
|
|
14
14
|
import userEvent from '@testing-library/user-event';
|
|
15
15
|
import { KeyTypes } from '../../../helpers';
|
|
16
16
|
|
|
17
|
+
jest.mock('../../../helpers/GenerateId/GenerateId');
|
|
18
|
+
|
|
17
19
|
Object.values([
|
|
18
20
|
{ isExpanded: true, isInline: false, isStatic: false },
|
|
19
21
|
{ isExpanded: false, isInline: false, isStatic: false },
|
|
@@ -3,6 +3,8 @@ import { render, screen } from '@testing-library/react';
|
|
|
3
3
|
import { DrawerPanelContent } from '../DrawerPanelContent';
|
|
4
4
|
import { Drawer } from '../Drawer';
|
|
5
5
|
|
|
6
|
+
jest.mock('../../../helpers/GenerateId/GenerateId');
|
|
7
|
+
|
|
6
8
|
test('Does not render with aria-labelledby by default', () => {
|
|
7
9
|
render(
|
|
8
10
|
<Drawer isExpanded>
|
|
@@ -7,6 +7,8 @@ import { DrawerPanelContent } from '../../DrawerPanelContent';
|
|
|
7
7
|
// any missing imports can usually be resolved by adding them here
|
|
8
8
|
import {} from '../..';
|
|
9
9
|
|
|
10
|
+
jest.mock('../../../../helpers/GenerateId/GenerateId');
|
|
11
|
+
|
|
10
12
|
it('DrawerPanelContent should match snapshot (auto-generated)', () => {
|
|
11
13
|
const { asFragment } = render(<DrawerPanelContent className={"''"} children={<div>ReactNode</div>} />);
|
|
12
14
|
expect(asFragment()).toMatchSnapshot();
|
|
@@ -19,7 +19,7 @@ exports[`Drawer expands from bottom 1`] = `
|
|
|
19
19
|
</div>
|
|
20
20
|
<div
|
|
21
21
|
class="pf-v5-c-drawer__panel"
|
|
22
|
-
id="
|
|
22
|
+
id="generated-id"
|
|
23
23
|
>
|
|
24
24
|
<div
|
|
25
25
|
class="pf-v5-c-drawer__body"
|
|
@@ -187,11 +187,11 @@ exports[`Drawer has resizable css and color variants 1`] = `
|
|
|
187
187
|
</div>
|
|
188
188
|
<div
|
|
189
189
|
class="pf-v5-c-drawer__panel pf-m-resizable pf-m-light-200"
|
|
190
|
-
id="
|
|
190
|
+
id="generated-id"
|
|
191
191
|
style="--pf-v5-c-drawer__panel--md--FlexBasis: 300px; --pf-v5-c-drawer__panel--md--FlexBasis--min: 200px; --pf-v5-c-drawer__panel--md--FlexBasis--max: 400px;"
|
|
192
192
|
>
|
|
193
193
|
<div
|
|
194
|
-
aria-controls="
|
|
194
|
+
aria-controls="generated-id"
|
|
195
195
|
aria-label="Resize"
|
|
196
196
|
aria-orientation="vertical"
|
|
197
197
|
aria-valuemax="100"
|
|
@@ -283,7 +283,7 @@ exports[`Drawer isExpanded = false and isInline = false and isStatic = false 1`]
|
|
|
283
283
|
<div
|
|
284
284
|
class="pf-v5-c-drawer__panel"
|
|
285
285
|
hidden=""
|
|
286
|
-
id="
|
|
286
|
+
id="generated-id"
|
|
287
287
|
/>
|
|
288
288
|
</div>
|
|
289
289
|
</div>
|
|
@@ -310,7 +310,7 @@ exports[`Drawer isExpanded = false and isInline = true and isStatic = false 1`]
|
|
|
310
310
|
<div
|
|
311
311
|
class="pf-v5-c-drawer__panel"
|
|
312
312
|
hidden=""
|
|
313
|
-
id="
|
|
313
|
+
id="generated-id"
|
|
314
314
|
/>
|
|
315
315
|
</div>
|
|
316
316
|
</div>
|
|
@@ -336,7 +336,7 @@ exports[`Drawer isExpanded = true and isInline = false and isStatic = false 1`]
|
|
|
336
336
|
</div>
|
|
337
337
|
<div
|
|
338
338
|
class="pf-v5-c-drawer__panel"
|
|
339
|
-
id="
|
|
339
|
+
id="generated-id"
|
|
340
340
|
>
|
|
341
341
|
<div
|
|
342
342
|
class="pf-v5-c-drawer__body"
|
|
@@ -410,7 +410,7 @@ exports[`Drawer isExpanded = true and isInline = false and isStatic = true 1`] =
|
|
|
410
410
|
</div>
|
|
411
411
|
<div
|
|
412
412
|
class="pf-v5-c-drawer__panel"
|
|
413
|
-
id="
|
|
413
|
+
id="generated-id"
|
|
414
414
|
>
|
|
415
415
|
<div
|
|
416
416
|
class="pf-v5-c-drawer__body"
|
|
@@ -484,7 +484,7 @@ exports[`Drawer isExpanded = true and isInline = true and isStatic = false 1`] =
|
|
|
484
484
|
</div>
|
|
485
485
|
<div
|
|
486
486
|
class="pf-v5-c-drawer__panel"
|
|
487
|
-
id="
|
|
487
|
+
id="generated-id"
|
|
488
488
|
>
|
|
489
489
|
<div
|
|
490
490
|
class="pf-v5-c-drawer__body"
|
|
@@ -7,6 +7,8 @@ import { FormFieldGroupExpandable } from '../FormFieldGroupExpandable';
|
|
|
7
7
|
import { FormFieldGroupHeader } from '../FormFieldGroupHeader';
|
|
8
8
|
import { Button } from '../../Button';
|
|
9
9
|
|
|
10
|
+
jest.mock('../../../helpers/GenerateId/GenerateId');
|
|
11
|
+
|
|
10
12
|
test('Check form field group example against snapshot', () => {
|
|
11
13
|
const FieldGroup = (
|
|
12
14
|
<FormFieldGroup
|
|
@@ -2,6 +2,8 @@ import * as React from 'react';
|
|
|
2
2
|
import { FormSection } from '../FormSection';
|
|
3
3
|
import { render, screen } from '@testing-library/react';
|
|
4
4
|
|
|
5
|
+
jest.mock('../../../helpers/GenerateId/GenerateId');
|
|
6
|
+
|
|
5
7
|
test('Check form section example against snapshot', () => {
|
|
6
8
|
const Section = <FormSection />;
|
|
7
9
|
const { asFragment } = render(Section);
|
|
@@ -17,12 +17,12 @@ exports[`Check expandable form field group example against snapshot 1`] = `
|
|
|
17
17
|
aria-disabled="false"
|
|
18
18
|
aria-expanded="true"
|
|
19
19
|
aria-label="toggle"
|
|
20
|
-
aria-labelledby="title-text-id2
|
|
20
|
+
aria-labelledby="title-text-id2 generated-id"
|
|
21
21
|
class="pf-v5-c-button pf-m-plain"
|
|
22
22
|
data-ouia-component-id="OUIA-Generated-Button-plain-1"
|
|
23
23
|
data-ouia-component-type="PF5/Button"
|
|
24
24
|
data-ouia-safe="true"
|
|
25
|
-
id="
|
|
25
|
+
id="generated-id"
|
|
26
26
|
type="button"
|
|
27
27
|
>
|
|
28
28
|
<span
|
|
@@ -12,13 +12,13 @@ exports[`Check form section example against snapshot 1`] = `
|
|
|
12
12
|
exports[`Check form section example with title 1`] = `
|
|
13
13
|
<DocumentFragment>
|
|
14
14
|
<section
|
|
15
|
-
aria-labelledby="
|
|
15
|
+
aria-labelledby="generated-id"
|
|
16
16
|
class="pf-v5-c-form__section"
|
|
17
17
|
role="group"
|
|
18
18
|
>
|
|
19
19
|
<h4
|
|
20
20
|
class="pf-v5-c-form__section-title"
|
|
21
|
-
id="
|
|
21
|
+
id="generated-id"
|
|
22
22
|
>
|
|
23
23
|
Title
|
|
24
24
|
</h4>
|
|
@@ -6,6 +6,8 @@ import userEvent from '@testing-library/user-event';
|
|
|
6
6
|
import { Label } from '../../Label';
|
|
7
7
|
import { LabelGroup } from '../index';
|
|
8
8
|
|
|
9
|
+
jest.mock('../../../helpers/GenerateId/GenerateId');
|
|
10
|
+
|
|
9
11
|
describe('LabelGroup', () => {
|
|
10
12
|
test('label group default', () => {
|
|
11
13
|
const { asFragment } = render(
|
|
@@ -134,12 +134,12 @@ exports[`LabelGroup label group with category 1`] = `
|
|
|
134
134
|
<span
|
|
135
135
|
aria-hidden="true"
|
|
136
136
|
class="pf-v5-c-label-group__label"
|
|
137
|
-
id="
|
|
137
|
+
id="generated-id"
|
|
138
138
|
>
|
|
139
139
|
category
|
|
140
140
|
</span>
|
|
141
141
|
<ul
|
|
142
|
-
aria-labelledby="
|
|
142
|
+
aria-labelledby="generated-id"
|
|
143
143
|
class="pf-v5-c-label-group__list"
|
|
144
144
|
role="list"
|
|
145
145
|
>
|
|
@@ -177,12 +177,12 @@ exports[`LabelGroup label group with category and tooltip 1`] = `
|
|
|
177
177
|
<span
|
|
178
178
|
aria-hidden="true"
|
|
179
179
|
class="pf-v5-c-label-group__label"
|
|
180
|
-
id="
|
|
180
|
+
id="generated-id"
|
|
181
181
|
>
|
|
182
182
|
A very long category name
|
|
183
183
|
</span>
|
|
184
184
|
<ul
|
|
185
|
-
aria-labelledby="
|
|
185
|
+
aria-labelledby="generated-id"
|
|
186
186
|
class="pf-v5-c-label-group__list"
|
|
187
187
|
role="list"
|
|
188
188
|
>
|
|
@@ -220,12 +220,12 @@ exports[`LabelGroup label group with closable category 1`] = `
|
|
|
220
220
|
<span
|
|
221
221
|
aria-hidden="true"
|
|
222
222
|
class="pf-v5-c-label-group__label"
|
|
223
|
-
id="
|
|
223
|
+
id="generated-id"
|
|
224
224
|
>
|
|
225
225
|
category
|
|
226
226
|
</span>
|
|
227
227
|
<ul
|
|
228
|
-
aria-labelledby="
|
|
228
|
+
aria-labelledby="generated-id"
|
|
229
229
|
class="pf-v5-c-label-group__list"
|
|
230
230
|
role="list"
|
|
231
231
|
>
|
|
@@ -254,12 +254,12 @@ exports[`LabelGroup label group with closable category 1`] = `
|
|
|
254
254
|
<button
|
|
255
255
|
aria-disabled="false"
|
|
256
256
|
aria-label="Close label group"
|
|
257
|
-
aria-labelledby="
|
|
257
|
+
aria-labelledby="remove_group_generated-id generated-id"
|
|
258
258
|
class="pf-v5-c-button pf-m-plain"
|
|
259
259
|
data-ouia-component-id="OUIA-Generated-Button-plain-1"
|
|
260
260
|
data-ouia-component-type="PF5/Button"
|
|
261
261
|
data-ouia-safe="true"
|
|
262
|
-
id="
|
|
262
|
+
id="remove_group_generated-id"
|
|
263
263
|
type="button"
|
|
264
264
|
>
|
|
265
265
|
<svg
|
|
@@ -2,6 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
3
|
import { MultipleFileUpload } from '../MultipleFileUpload';
|
|
4
4
|
|
|
5
|
+
jest.mock('../../../helpers/GenerateId/GenerateId');
|
|
6
|
+
|
|
5
7
|
describe('MultipleFileUpload', () => {
|
|
6
8
|
test('renders with expected class names when not horizontal', () => {
|
|
7
9
|
const { asFragment } = render(<MultipleFileUpload>Foo</MultipleFileUpload>);
|
|
@@ -3,6 +3,8 @@ import { render } from '@testing-library/react';
|
|
|
3
3
|
import { MultipleFileUploadStatus } from '../MultipleFileUploadStatus';
|
|
4
4
|
import InProgressIcon from '@patternfly/react-icons/dist/esm/icons/in-progress-icon';
|
|
5
5
|
|
|
6
|
+
jest.mock('../../../helpers/GenerateId/GenerateId');
|
|
7
|
+
|
|
6
8
|
describe('MultipleFileUploadStatus', () => {
|
|
7
9
|
test('renders with expected class names', () => {
|
|
8
10
|
const { asFragment } = render(<MultipleFileUploadStatus>Foo</MultipleFileUploadStatus>);
|
|
@@ -9,10 +9,10 @@ exports[`MultipleFileUploadStatus renders custom class names 1`] = `
|
|
|
9
9
|
class="pf-v5-c-expandable-section pf-m-expanded"
|
|
10
10
|
>
|
|
11
11
|
<button
|
|
12
|
-
aria-controls="
|
|
12
|
+
aria-controls="generated-id-content"
|
|
13
13
|
aria-expanded="true"
|
|
14
14
|
class="pf-v5-c-expandable-section__toggle"
|
|
15
|
-
id="
|
|
15
|
+
id="generated-id-toggle"
|
|
16
16
|
type="button"
|
|
17
17
|
>
|
|
18
18
|
<span
|
|
@@ -48,9 +48,9 @@ exports[`MultipleFileUploadStatus renders custom class names 1`] = `
|
|
|
48
48
|
</span>
|
|
49
49
|
</button>
|
|
50
50
|
<div
|
|
51
|
-
aria-labelledby="
|
|
51
|
+
aria-labelledby="generated-id-toggle"
|
|
52
52
|
class="pf-v5-c-expandable-section__content"
|
|
53
|
-
id="
|
|
53
|
+
id="generated-id-content"
|
|
54
54
|
role="region"
|
|
55
55
|
>
|
|
56
56
|
<ul
|
|
@@ -74,10 +74,10 @@ exports[`MultipleFileUploadStatus renders status toggle icon 1`] = `
|
|
|
74
74
|
class="pf-v5-c-expandable-section pf-m-expanded"
|
|
75
75
|
>
|
|
76
76
|
<button
|
|
77
|
-
aria-controls="
|
|
77
|
+
aria-controls="generated-id-content"
|
|
78
78
|
aria-expanded="true"
|
|
79
79
|
class="pf-v5-c-expandable-section__toggle"
|
|
80
|
-
id="
|
|
80
|
+
id="generated-id-toggle"
|
|
81
81
|
type="button"
|
|
82
82
|
>
|
|
83
83
|
<span
|
|
@@ -127,9 +127,9 @@ exports[`MultipleFileUploadStatus renders status toggle icon 1`] = `
|
|
|
127
127
|
</span>
|
|
128
128
|
</button>
|
|
129
129
|
<div
|
|
130
|
-
aria-labelledby="
|
|
130
|
+
aria-labelledby="generated-id-toggle"
|
|
131
131
|
class="pf-v5-c-expandable-section__content"
|
|
132
|
-
id="
|
|
132
|
+
id="generated-id-content"
|
|
133
133
|
role="region"
|
|
134
134
|
>
|
|
135
135
|
<ul
|
|
@@ -153,10 +153,10 @@ exports[`MultipleFileUploadStatus renders status toggle text 1`] = `
|
|
|
153
153
|
class="pf-v5-c-expandable-section pf-m-expanded"
|
|
154
154
|
>
|
|
155
155
|
<button
|
|
156
|
-
aria-controls="
|
|
156
|
+
aria-controls="generated-id-content"
|
|
157
157
|
aria-expanded="true"
|
|
158
158
|
class="pf-v5-c-expandable-section__toggle"
|
|
159
|
-
id="
|
|
159
|
+
id="generated-id-toggle"
|
|
160
160
|
type="button"
|
|
161
161
|
>
|
|
162
162
|
<span
|
|
@@ -194,9 +194,9 @@ exports[`MultipleFileUploadStatus renders status toggle text 1`] = `
|
|
|
194
194
|
</span>
|
|
195
195
|
</button>
|
|
196
196
|
<div
|
|
197
|
-
aria-labelledby="
|
|
197
|
+
aria-labelledby="generated-id-toggle"
|
|
198
198
|
class="pf-v5-c-expandable-section__content"
|
|
199
|
-
id="
|
|
199
|
+
id="generated-id-content"
|
|
200
200
|
role="region"
|
|
201
201
|
>
|
|
202
202
|
<ul
|
|
@@ -220,10 +220,10 @@ exports[`MultipleFileUploadStatus renders with expected class names 1`] = `
|
|
|
220
220
|
class="pf-v5-c-expandable-section pf-m-expanded"
|
|
221
221
|
>
|
|
222
222
|
<button
|
|
223
|
-
aria-controls="
|
|
223
|
+
aria-controls="generated-id-content"
|
|
224
224
|
aria-expanded="true"
|
|
225
225
|
class="pf-v5-c-expandable-section__toggle"
|
|
226
|
-
id="
|
|
226
|
+
id="generated-id-toggle"
|
|
227
227
|
type="button"
|
|
228
228
|
>
|
|
229
229
|
<span
|
|
@@ -259,9 +259,9 @@ exports[`MultipleFileUploadStatus renders with expected class names 1`] = `
|
|
|
259
259
|
</span>
|
|
260
260
|
</button>
|
|
261
261
|
<div
|
|
262
|
-
aria-labelledby="
|
|
262
|
+
aria-labelledby="generated-id-toggle"
|
|
263
263
|
class="pf-v5-c-expandable-section__content"
|
|
264
|
-
id="
|
|
264
|
+
id="generated-id-content"
|
|
265
265
|
role="region"
|
|
266
266
|
>
|
|
267
267
|
<ul
|
|
@@ -11,6 +11,7 @@ import badgeStyles from '@patternfly/react-styles/css/components/Badge/badge';
|
|
|
11
11
|
import textInputGroupStyles from '@patternfly/react-styles/css/components/TextInputGroup/text-input-group';
|
|
12
12
|
|
|
13
13
|
jest.mock('../../../helpers/OUIA/ouia');
|
|
14
|
+
jest.mock('../../../helpers/GenerateId/GenerateId');
|
|
14
15
|
|
|
15
16
|
const props = {
|
|
16
17
|
onChange: jest.fn(),
|
|
@@ -364,7 +364,7 @@ exports[`SearchInput advanced search with custom attributes 1`] = `
|
|
|
364
364
|
>
|
|
365
365
|
<label
|
|
366
366
|
class="pf-v5-c-form__label"
|
|
367
|
-
for="
|
|
367
|
+
for="generated-id"
|
|
368
368
|
>
|
|
369
369
|
<span
|
|
370
370
|
class="pf-v5-c-form__label-text"
|
|
@@ -382,7 +382,7 @@ exports[`SearchInput advanced search with custom attributes 1`] = `
|
|
|
382
382
|
>
|
|
383
383
|
<input
|
|
384
384
|
aria-invalid="false"
|
|
385
|
-
id="
|
|
385
|
+
id="generated-id"
|
|
386
386
|
type="text"
|
|
387
387
|
value=""
|
|
388
388
|
/>
|
|
@@ -7,6 +7,8 @@ import { TabTitleIcon } from '../TabTitleIcon';
|
|
|
7
7
|
import { TabContent } from '../TabContent';
|
|
8
8
|
import { TabContentBody } from '../TabContentBody';
|
|
9
9
|
|
|
10
|
+
jest.mock('../../../helpers/GenerateId/GenerateId');
|
|
11
|
+
|
|
10
12
|
test('should render simple tabs', () => {
|
|
11
13
|
const { asFragment } = render(
|
|
12
14
|
<Tabs id="simpleTabs">
|
|
@@ -408,12 +408,12 @@ exports[`should render expandable vertical tabs 1`] = `
|
|
|
408
408
|
>
|
|
409
409
|
<button
|
|
410
410
|
aria-disabled="false"
|
|
411
|
-
aria-labelledby="
|
|
411
|
+
aria-labelledby="generated-id-text generated-id-button"
|
|
412
412
|
class="pf-v5-c-button pf-m-plain"
|
|
413
413
|
data-ouia-component-id="OUIA-Generated-Button-plain-3"
|
|
414
414
|
data-ouia-component-type="PF5/Button"
|
|
415
415
|
data-ouia-safe="true"
|
|
416
|
-
id="
|
|
416
|
+
id="generated-id-button"
|
|
417
417
|
type="button"
|
|
418
418
|
>
|
|
419
419
|
<span
|
|
@@ -436,7 +436,7 @@ exports[`should render expandable vertical tabs 1`] = `
|
|
|
436
436
|
</span>
|
|
437
437
|
<span
|
|
438
438
|
class="pf-v5-c-tabs__toggle-text"
|
|
439
|
-
id="
|
|
439
|
+
id="generated-id-text"
|
|
440
440
|
>
|
|
441
441
|
toggle
|
|
442
442
|
</span>
|
|
@@ -10,6 +10,8 @@ import { ToolbarFilter } from '../ToolbarFilter';
|
|
|
10
10
|
import { ToolbarGroup } from '../ToolbarGroup';
|
|
11
11
|
import { Button } from '../../Button/Button';
|
|
12
12
|
|
|
13
|
+
jest.mock('../../../helpers/GenerateId/GenerateId');
|
|
14
|
+
|
|
13
15
|
describe('Toolbar', () => {
|
|
14
16
|
it('should render inset', () => {
|
|
15
17
|
const items = (
|
|
@@ -103,7 +103,7 @@ exports[`Toolbar should render with custom chip content 1`] = `
|
|
|
103
103
|
class="pf-v5-c-toolbar__item pf-m-chip-group"
|
|
104
104
|
>
|
|
105
105
|
<div
|
|
106
|
-
aria-labelledby="
|
|
106
|
+
aria-labelledby="generated-id"
|
|
107
107
|
class="pf-v5-c-chip-group pf-m-category"
|
|
108
108
|
data-ouia-component-type="PF5/ChipGroup"
|
|
109
109
|
data-ouia-safe="true"
|
|
@@ -114,12 +114,12 @@ exports[`Toolbar should render with custom chip content 1`] = `
|
|
|
114
114
|
>
|
|
115
115
|
<span
|
|
116
116
|
class="pf-v5-c-chip-group__label"
|
|
117
|
-
id="
|
|
117
|
+
id="generated-id"
|
|
118
118
|
>
|
|
119
119
|
Status
|
|
120
120
|
</span>
|
|
121
121
|
<ul
|
|
122
|
-
aria-labelledby="
|
|
122
|
+
aria-labelledby="generated-id"
|
|
123
123
|
class="pf-v5-c-chip-group__list"
|
|
124
124
|
role="list"
|
|
125
125
|
>
|
|
@@ -137,7 +137,7 @@ exports[`Toolbar should render with custom chip content 1`] = `
|
|
|
137
137
|
>
|
|
138
138
|
<span
|
|
139
139
|
class="pf-v5-c-chip__text"
|
|
140
|
-
id="
|
|
140
|
+
id="generated-id"
|
|
141
141
|
>
|
|
142
142
|
New
|
|
143
143
|
</span>
|
|
@@ -148,12 +148,12 @@ exports[`Toolbar should render with custom chip content 1`] = `
|
|
|
148
148
|
<button
|
|
149
149
|
aria-disabled="false"
|
|
150
150
|
aria-label="close"
|
|
151
|
-
aria-labelledby="
|
|
151
|
+
aria-labelledby="remove_generated-id generated-id"
|
|
152
152
|
class="pf-v5-c-button pf-m-plain"
|
|
153
153
|
data-ouia-component-id="close"
|
|
154
154
|
data-ouia-component-type="PF5/Button"
|
|
155
155
|
data-ouia-safe="true"
|
|
156
|
-
id="
|
|
156
|
+
id="remove_generated-id"
|
|
157
157
|
type="button"
|
|
158
158
|
>
|
|
159
159
|
<svg
|
|
@@ -187,7 +187,7 @@ exports[`Toolbar should render with custom chip content 1`] = `
|
|
|
187
187
|
>
|
|
188
188
|
<span
|
|
189
189
|
class="pf-v5-c-chip__text"
|
|
190
|
-
id="
|
|
190
|
+
id="generated-id"
|
|
191
191
|
>
|
|
192
192
|
Pending
|
|
193
193
|
</span>
|
|
@@ -198,12 +198,12 @@ exports[`Toolbar should render with custom chip content 1`] = `
|
|
|
198
198
|
<button
|
|
199
199
|
aria-disabled="false"
|
|
200
200
|
aria-label="close"
|
|
201
|
-
aria-labelledby="
|
|
201
|
+
aria-labelledby="remove_generated-id generated-id"
|
|
202
202
|
class="pf-v5-c-button pf-m-plain"
|
|
203
203
|
data-ouia-component-id="close"
|
|
204
204
|
data-ouia-component-type="PF5/Button"
|
|
205
205
|
data-ouia-safe="true"
|
|
206
|
-
id="
|
|
206
|
+
id="remove_generated-id"
|
|
207
207
|
type="button"
|
|
208
208
|
>
|
|
209
209
|
<svg
|
|
@@ -231,12 +231,12 @@ exports[`Toolbar should render with custom chip content 1`] = `
|
|
|
231
231
|
<button
|
|
232
232
|
aria-disabled="false"
|
|
233
233
|
aria-label="Close chip group"
|
|
234
|
-
aria-labelledby="
|
|
234
|
+
aria-labelledby="remove_group_generated-id generated-id"
|
|
235
235
|
class="pf-v5-c-button pf-m-plain"
|
|
236
236
|
data-ouia-component-id="Close chip group"
|
|
237
237
|
data-ouia-component-type="PF5/Button"
|
|
238
238
|
data-ouia-safe="true"
|
|
239
|
-
id="
|
|
239
|
+
id="remove_group_generated-id"
|
|
240
240
|
type="button"
|
|
241
241
|
>
|
|
242
242
|
<svg
|
|
@@ -9,6 +9,8 @@ import { SelectGroup } from '../SelectGroup';
|
|
|
9
9
|
import { SelectVariant, SelectDirection } from '../selectConstants';
|
|
10
10
|
import { KeyTypes } from '../../../../helpers';
|
|
11
11
|
|
|
12
|
+
jest.mock('../../../../helpers/GenerateId/GenerateId');
|
|
13
|
+
|
|
12
14
|
class User implements SelectOptionObject {
|
|
13
15
|
private firstName: string;
|
|
14
16
|
private lastName: string;
|