@patternfly/react-core 4.206.5 → 4.206.6
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 +8 -0
- package/dist/umd/react-core.css +39 -39
- package/package.json +5 -5
- package/src/components/AboutModal/__tests__/AboutModal.test.tsx +2 -2
- package/src/components/AboutModal/__tests__/AboutModalBox.test.tsx +2 -2
- package/src/components/AboutModal/__tests__/AboutModalBoxBrand.test.tsx +2 -2
- package/src/components/AboutModal/__tests__/AboutModalBoxCloseButton.test.tsx +6 -6
- package/src/components/AboutModal/__tests__/AboutModalBoxContent.test.tsx +2 -2
- package/src/components/AboutModal/__tests__/AboutModalBoxHeader.test.tsx +2 -2
- package/src/components/AboutModal/__tests__/AboutModalBoxHero.test.tsx +2 -2
- package/src/components/AboutModal/__tests__/AboutModalContainer.test.tsx +9 -7
- package/src/components/AboutModal/__tests__/__snapshots__/AboutModalBox.test.tsx.snap +2 -2
- package/src/components/AboutModal/__tests__/__snapshots__/AboutModalBoxBrand.test.tsx.snap +2 -2
- package/src/components/AboutModal/__tests__/__snapshots__/AboutModalBoxCloseButton.test.tsx.snap +6 -6
- package/src/components/AboutModal/__tests__/__snapshots__/AboutModalBoxContent.test.tsx.snap +2 -2
- package/src/components/AboutModal/__tests__/__snapshots__/AboutModalBoxHeader.test.tsx.snap +2 -2
- package/src/components/AboutModal/__tests__/__snapshots__/AboutModalBoxHero.test.tsx.snap +2 -2
- package/src/components/AboutModal/__tests__/__snapshots__/AboutModalContainer.test.tsx.snap +8 -4
- package/src/components/Accordion/__tests__/Accordion.test.tsx +16 -17
- package/src/components/Accordion/__tests__/Generated/AccordionContent.test.tsx +2 -2
- package/src/components/Accordion/__tests__/Generated/AccordionItem.test.tsx +2 -2
- package/src/components/Accordion/__tests__/Generated/AccordionToggle.test.tsx +2 -2
- package/src/components/Accordion/__tests__/Generated/__snapshots__/AccordionContent.test.tsx.snap +2 -2
- package/src/components/Accordion/__tests__/Generated/__snapshots__/AccordionItem.test.tsx.snap +2 -2
- package/src/components/Accordion/__tests__/Generated/__snapshots__/AccordionToggle.test.tsx.snap +2 -2
- package/src/components/Accordion/__tests__/__snapshots__/Accordion.test.tsx.snap +10 -10
- package/src/components/ActionList/__tests__/ActionList.test.tsx +4 -4
- package/src/components/ActionList/__tests__/ActionListGroup.test.tsx +2 -2
- package/src/components/ActionList/__tests__/ActionListItem.test.tsx +2 -2
- package/src/components/ActionList/__tests__/__snapshots__/ActionList.test.tsx.snap +4 -4
- package/src/components/ActionList/__tests__/__snapshots__/ActionListGroup.test.tsx.snap +2 -2
- package/src/components/ActionList/__tests__/__snapshots__/ActionListItem.test.tsx.snap +2 -2
- package/src/components/Alert/__tests__/Alert.test.tsx +28 -27
- package/src/components/Alert/__tests__/Generated/AlertActionCloseButton.test.tsx +2 -2
- package/src/components/Alert/__tests__/Generated/AlertActionLink.test.tsx +2 -2
- package/src/components/Alert/__tests__/Generated/AlertIcon.test.tsx +2 -2
- package/src/components/Alert/__tests__/Generated/__snapshots__/AlertActionCloseButton.test.tsx.snap +2 -2
- package/src/components/Alert/__tests__/Generated/__snapshots__/AlertActionLink.test.tsx.snap +2 -2
- package/src/components/Alert/__tests__/Generated/__snapshots__/AlertIcon.test.tsx.snap +2 -2
- package/src/components/Alert/__tests__/__snapshots__/Alert.test.tsx.snap +100 -110
- package/src/components/AlertGroup/__tests__/AlertGroup.test.tsx +6 -7
- package/src/components/AlertGroup/__tests__/Generated/AlertGroup.test.tsx +2 -2
- package/src/components/AlertGroup/__tests__/Generated/AlertGroupInline.test.tsx +2 -2
- package/src/components/AlertGroup/__tests__/Generated/__snapshots__/AlertGroup.test.tsx.snap +1 -1
- package/src/components/AlertGroup/__tests__/Generated/__snapshots__/AlertGroupInline.test.tsx.snap +2 -2
- package/src/components/AlertGroup/__tests__/__snapshots__/AlertGroup.test.tsx.snap +2 -2
- package/src/components/ApplicationLauncher/__tests__/ApplicationLauncher.test.tsx +13 -17
- package/src/components/ApplicationLauncher/__tests__/Generated/ApplicationLauncherContent.test.tsx +2 -2
- package/src/components/ApplicationLauncher/__tests__/Generated/ApplicationLauncherGroup.test.tsx +2 -2
- package/src/components/ApplicationLauncher/__tests__/Generated/ApplicationLauncherIcon.test.tsx +2 -2
- package/src/components/ApplicationLauncher/__tests__/Generated/ApplicationLauncherSeparator.test.tsx +2 -2
- package/src/components/ApplicationLauncher/__tests__/Generated/ApplicationLauncherText.test.tsx +2 -2
- package/src/components/ApplicationLauncher/__tests__/Generated/__snapshots__/ApplicationLauncherContent.test.tsx.snap +2 -2
- package/src/components/ApplicationLauncher/__tests__/Generated/__snapshots__/ApplicationLauncherGroup.test.tsx.snap +2 -3
- package/src/components/ApplicationLauncher/__tests__/Generated/__snapshots__/ApplicationLauncherIcon.test.tsx.snap +2 -2
- package/src/components/ApplicationLauncher/__tests__/Generated/__snapshots__/ApplicationLauncherSeparator.test.tsx.snap +2 -2
- package/src/components/ApplicationLauncher/__tests__/Generated/__snapshots__/ApplicationLauncherText.test.tsx.snap +2 -2
- package/src/components/ApplicationLauncher/__tests__/__snapshots__/ApplicationLauncher.test.tsx.snap +12 -12
- package/src/components/Avatar/__tests__/Avatar.test.tsx +2 -2
- package/src/components/Avatar/__tests__/__snapshots__/Avatar.test.tsx.snap +2 -2
- package/src/components/BackToTop/__tests__/BackToTop.test.tsx +7 -7
- package/src/components/BackToTop/__tests__/__snapshots__/BackToTop.test.tsx.snap +6 -6
- package/src/components/Backdrop/__tests__/Backdrop.test.tsx +2 -2
- package/src/components/Backdrop/__tests__/__snapshots__/Backdrop.test.tsx.snap +2 -2
- package/src/components/BackgroundImage/__tests__/BackgroundImage.test.tsx +9 -9
- package/src/components/BackgroundImage/__tests__/__snapshots__/BackgroundImage.test.tsx.snap +4 -4
- package/src/components/Badge/__tests__/Badge.test.tsx +2 -2
- package/src/components/Badge/__tests__/__snapshots__/Badge.test.tsx.snap +6 -8
- package/src/components/Banner/__tests__/Banner.test.tsx +12 -14
- package/src/components/Banner/__tests__/__snapshots__/Banner.test.tsx.snap +17 -22
- package/src/components/Brand/__tests__/Brand.test.tsx +5 -4
- package/src/components/Brand/__tests__/__snapshots__/Brand.test.tsx.snap +2 -2
- package/src/components/Breadcrumb/__tests__/Breadcrumb.test.tsx +8 -8
- package/src/components/Breadcrumb/__tests__/BreadcrumbHeading.test.tsx +10 -10
- package/src/components/Breadcrumb/__tests__/BreadcrumbItem.test.tsx +16 -18
- package/src/components/Breadcrumb/__tests__/__snapshots__/Breadcrumb.test.tsx.snap +8 -8
- package/src/components/Breadcrumb/__tests__/__snapshots__/BreadcrumbHeading.test.tsx.snap +10 -10
- package/src/components/Breadcrumb/__tests__/__snapshots__/BreadcrumbItem.test.tsx.snap +16 -16
- package/src/components/Button/__tests__/Button.test.tsx +29 -30
- package/src/components/Button/__tests__/__snapshots__/Button.test.tsx.snap +50 -58
- package/src/components/Card/__tests__/Card.test.tsx +24 -27
- package/src/components/Card/__tests__/CardBody.test.tsx +5 -8
- package/src/components/Card/__tests__/CardExpandableContent.test.tsx +2 -2
- package/src/components/Card/__tests__/CardFooter.test.tsx +3 -6
- package/src/components/Card/__tests__/CardHeadMain.test.tsx +3 -6
- package/src/components/Card/__tests__/CardHeader.test.tsx +2 -2
- package/src/components/Card/__tests__/CardHeaderMain.test.tsx +3 -6
- package/src/components/Card/__tests__/CardTitle.test.tsx +3 -6
- package/src/components/Card/__tests__/Generated/CardActions.test.tsx +2 -2
- package/src/components/Card/__tests__/Generated/__snapshots__/CardActions.test.tsx.snap +2 -2
- package/src/components/Card/__tests__/__snapshots__/Card.test.tsx.snap +24 -4
- package/src/components/Card/__tests__/__snapshots__/CardBody.test.tsx.snap +4 -4
- package/src/components/Card/__tests__/__snapshots__/CardExpandableContent.test.tsx.snap +2 -2
- package/src/components/Card/__tests__/__snapshots__/CardFooter.test.tsx.snap +2 -2
- package/src/components/Card/__tests__/__snapshots__/CardHeadMain.test.tsx.snap +9 -1
- package/src/components/Card/__tests__/__snapshots__/CardHeader.test.tsx.snap +2 -2
- package/src/components/Card/__tests__/__snapshots__/CardHeaderMain.test.tsx.snap +9 -1
- package/src/components/Card/__tests__/__snapshots__/CardTitle.test.tsx.snap +9 -1
- package/src/components/Checkbox/__tests__/Checkbox.test.tsx +24 -21
- package/src/components/Checkbox/__tests__/__snapshots__/Checkbox.test.tsx.snap +204 -9
- package/src/components/Chip/__tests__/Chip.test.tsx +8 -10
- package/src/components/Chip/__tests__/__snapshots__/Chip.test.tsx.snap +8 -8
- package/src/components/ChipGroup/__tests__/ChipGroup.test.tsx +8 -9
- package/src/components/ChipGroup/__tests__/__snapshots__/ChipGroup.test.tsx.snap +8 -9
- package/src/components/ClipboardCopy/__tests__/ClipboardCopyButton.test.tsx +5 -4
- package/src/components/ClipboardCopy/__tests__/ClipboardCopyExpanded.test.tsx +4 -4
- package/src/components/ClipboardCopy/__tests__/ClipboardCopyToggle.test.tsx +7 -5
- package/src/components/ClipboardCopy/__tests__/Generated/ClipboardCopy.test.tsx +2 -2
- package/src/components/ClipboardCopy/__tests__/Generated/__snapshots__/ClipboardCopy.test.tsx.snap +2 -2
- package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopyButton.test.tsx.snap +2 -2
- package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopyExpanded.test.tsx.snap +4 -4
- package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopyToggle.test.tsx.snap +2 -2
- package/src/components/CodeBlock/__tests__/CodeBlock.test.tsx +8 -8
- package/src/components/CodeBlock/__tests__/__snapshots__/CodeBlock.test.tsx.snap +8 -8
- package/src/components/ContextSelector/__tests__/ContextSelector.test.tsx +4 -8
- package/src/components/ContextSelector/__tests__/ContextSelectorFooter.test.tsx +2 -2
- package/src/components/ContextSelector/__tests__/ContextSelectorItem.test.tsx +6 -4
- package/src/components/ContextSelector/__tests__/ContextSelectorMenuList.test.tsx +4 -4
- package/src/components/ContextSelector/__tests__/ContextSelectorToggle.test.tsx +12 -20
- package/src/components/ContextSelector/__tests__/__snapshots__/ContextSelector.test.tsx.snap +178 -2
- package/src/components/ContextSelector/__tests__/__snapshots__/ContextSelectorFooter.test.tsx.snap +2 -2
- package/src/components/ContextSelector/__tests__/__snapshots__/ContextSelectorItem.test.tsx.snap +4 -4
- package/src/components/ContextSelector/__tests__/__snapshots__/ContextSelectorMenuList.test.tsx.snap +4 -4
- package/src/components/ContextSelector/__tests__/__snapshots__/ContextSelectorToggle.test.tsx.snap +155 -5
- package/src/components/DataList/__tests__/DataList.test.tsx +44 -40
- package/src/components/DataList/__tests__/Generated/DataListAction.test.tsx +2 -2
- package/src/components/DataList/__tests__/Generated/DataListCell.test.tsx +2 -2
- package/src/components/DataList/__tests__/Generated/DataListCheck.test.tsx +2 -2
- package/src/components/DataList/__tests__/Generated/DataListContent.test.tsx +2 -2
- package/src/components/DataList/__tests__/Generated/DataListItem.test.tsx +2 -2
- package/src/components/DataList/__tests__/Generated/DataListItemCells.test.tsx +4 -2
- package/src/components/DataList/__tests__/Generated/DataListItemRow.test.tsx +2 -2
- package/src/components/DataList/__tests__/Generated/DataListToggle.test.tsx +2 -2
- package/src/components/DataList/__tests__/Generated/__snapshots__/DataListAction.test.tsx.snap +2 -2
- package/src/components/DataList/__tests__/Generated/__snapshots__/DataListCell.test.tsx.snap +2 -2
- package/src/components/DataList/__tests__/Generated/__snapshots__/DataListCheck.test.tsx.snap +2 -2
- package/src/components/DataList/__tests__/Generated/__snapshots__/DataListContent.test.tsx.snap +2 -2
- package/src/components/DataList/__tests__/Generated/__snapshots__/DataListItem.test.tsx.snap +2 -2
- package/src/components/DataList/__tests__/Generated/__snapshots__/DataListItemCells.test.tsx.snap +2 -2
- package/src/components/DataList/__tests__/Generated/__snapshots__/DataListItemRow.test.tsx.snap +2 -2
- package/src/components/DataList/__tests__/Generated/__snapshots__/DataListToggle.test.tsx.snap +2 -2
- package/src/components/DataList/__tests__/__snapshots__/DataList.test.tsx.snap +47 -39
- package/src/components/DataList/examples/DataListExpandable.tsx +0 -23
- package/src/components/DatePicker/__tests__/DatePicker.test.tsx +2 -2
- package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.test.tsx.snap +2 -3
- package/src/components/DescriptionList/__tests__/DescriptionList.test.tsx +34 -34
- package/src/components/DescriptionList/__tests__/__snapshots__/DescriptionList.test.tsx.snap +34 -34
- package/src/components/Divider/__tests__/Divider.test.tsx +10 -10
- package/src/components/Divider/__tests__/__snapshots__/Divider.test.tsx.snap +8 -8
- package/src/components/DragDrop/__tests__/DragDrop.test.tsx +4 -8
- package/src/components/DragDrop/__tests__/__snapshots__/DragDrop.test.tsx.snap +4 -4
- package/src/components/Drawer/__tests__/Drawer.test.tsx +15 -9
- package/src/components/Drawer/__tests__/Generated/DrawerContent.test.tsx +4 -2
- package/src/components/Drawer/__tests__/Generated/DrawerPanelContent.test.tsx +2 -2
- package/src/components/Drawer/__tests__/Generated/__snapshots__/DrawerContent.test.tsx.snap +13 -87
- package/src/components/Drawer/__tests__/Generated/__snapshots__/DrawerPanelContent.test.tsx.snap +2 -2
- package/src/components/Drawer/__tests__/__snapshots__/Drawer.test.tsx.snap +16 -16
- package/src/components/Dropdown/__tests__/Dropdown.test.tsx +36 -34
- package/src/components/Dropdown/__tests__/DropdownGroup.test.tsx +2 -2
- package/src/components/Dropdown/__tests__/DropdownToggle.test.tsx +27 -30
- package/src/components/Dropdown/__tests__/DropdownToggleAction.test.tsx +9 -7
- package/src/components/Dropdown/__tests__/DropdownToggleCheckbox.test.tsx +18 -14
- package/src/components/Dropdown/__tests__/Generated/DropdownItem.test.tsx +2 -2
- package/src/components/Dropdown/__tests__/Generated/DropdownMenu.test.tsx +2 -2
- package/src/components/Dropdown/__tests__/Generated/DropdownSeparator.test.tsx +2 -2
- package/src/components/Dropdown/__tests__/Generated/KebabToggle.test.tsx +2 -2
- package/src/components/Dropdown/__tests__/Generated/__snapshots__/DropdownItem.test.tsx.snap +2 -2
- package/src/components/Dropdown/__tests__/Generated/__snapshots__/DropdownMenu.test.tsx.snap +2 -2
- package/src/components/Dropdown/__tests__/Generated/__snapshots__/DropdownSeparator.test.tsx.snap +2 -2
- package/src/components/Dropdown/__tests__/Generated/__snapshots__/KebabToggle.test.tsx.snap +2 -2
- package/src/components/Dropdown/__tests__/InternalDropdownItem.test.tsx +23 -21
- package/src/components/Dropdown/__tests__/Toggle.test.tsx +4 -4
- package/src/components/Dropdown/__tests__/__snapshots__/Dropdown.test.tsx.snap +820 -15
- package/src/components/Dropdown/__tests__/__snapshots__/DropdownGroup.test.tsx.snap +2 -2
- package/src/components/Dropdown/__tests__/__snapshots__/DropdownToggle.test.tsx.snap +208 -17
- package/src/components/Dropdown/__tests__/__snapshots__/DropdownToggleAction.test.tsx.snap +6 -6
- package/src/components/Dropdown/__tests__/__snapshots__/DropdownToggleCheckbox.test.tsx.snap +141 -7
- package/src/components/Dropdown/__tests__/__snapshots__/InternalDropdownItem.test.tsx.snap +157 -10
- package/src/components/Dropdown/__tests__/__snapshots__/Toggle.test.tsx.snap +4 -4
- package/src/components/DualListSelector/__tests__/DualListSelector.test.tsx +16 -12
- package/src/components/DualListSelector/__tests__/__snapshots__/DualListSelector.test.tsx.snap +12 -12
- package/src/components/EmptyState/__tests__/EmptyState.test.tsx +25 -24
- package/src/components/EmptyState/__tests__/Generated/EmptyStateBody.test.tsx +2 -2
- package/src/components/EmptyState/__tests__/Generated/EmptyStateIcon.test.tsx +5 -5
- package/src/components/EmptyState/__tests__/Generated/EmptyStatePrimary.test.tsx +2 -2
- package/src/components/EmptyState/__tests__/Generated/EmptyStateSecondaryActions.test.tsx +2 -2
- package/src/components/EmptyState/__tests__/Generated/__snapshots__/EmptyStateBody.test.tsx.snap +2 -2
- package/src/components/EmptyState/__tests__/Generated/__snapshots__/EmptyStateIcon.test.tsx.snap +4 -4
- package/src/components/EmptyState/__tests__/Generated/__snapshots__/EmptyStatePrimary.test.tsx.snap +2 -2
- package/src/components/EmptyState/__tests__/Generated/__snapshots__/EmptyStateSecondaryActions.test.tsx.snap +2 -2
- package/src/components/EmptyState/__tests__/__snapshots__/EmptyState.test.tsx.snap +130 -5
- package/src/components/ExpandableSection/__tests__/ExpandableSection.test.tsx +23 -12
- package/src/components/ExpandableSection/__tests__/__snapshots__/ExpandableSection.test.tsx.snap +12 -12
- package/src/components/FileUpload/__tests__/FileUpload.test.tsx +2 -2
- package/src/components/FileUpload/__tests__/FileUploadField.test.tsx +2 -2
- package/src/components/FileUpload/__tests__/__snapshots__/FileUpload.test.tsx.snap +2 -2
- package/src/components/FileUpload/__tests__/__snapshots__/FileUploadField.test.tsx.snap +2 -2
- package/src/components/Form/__tests__/ActionGroup.test.tsx +4 -4
- package/src/components/Form/__tests__/Form.test.tsx +6 -6
- package/src/components/Form/__tests__/FormAlert.test.tsx +2 -4
- package/src/components/Form/__tests__/FormFieldGroup.test.tsx +12 -15
- package/src/components/Form/__tests__/FormGroup.test.tsx +2 -13
- package/src/components/Form/__tests__/FormHelperText.test.tsx +8 -9
- package/src/components/Form/__tests__/FormSection.test.tsx +5 -5
- package/src/components/Form/__tests__/__snapshots__/ActionGroup.test.tsx.snap +4 -4
- package/src/components/Form/__tests__/__snapshots__/Form.test.tsx.snap +6 -6
- package/src/components/Form/__tests__/__snapshots__/FormAlert.test.tsx.snap +2 -2
- package/src/components/Form/__tests__/__snapshots__/FormFieldGroup.test.tsx.snap +4 -4
- package/src/components/Form/__tests__/__snapshots__/FormHelperText.test.tsx.snap +55 -4
- package/src/components/Form/__tests__/__snapshots__/FormSection.test.tsx.snap +5 -7
- package/src/components/FormSelect/__tests__/FormSelect.test.tsx +25 -26
- package/src/components/FormSelect/__tests__/Generated/FormSelectOption.test.tsx +2 -2
- package/src/components/FormSelect/__tests__/Generated/FormSelectOptionGroup.test.tsx +2 -2
- package/src/components/FormSelect/__tests__/Generated/__snapshots__/FormSelectOption.test.tsx.snap +2 -2
- package/src/components/FormSelect/__tests__/Generated/__snapshots__/FormSelectOptionGroup.test.tsx.snap +2 -2
- package/src/components/FormSelect/__tests__/__snapshots__/FormSelect.test.tsx.snap +256 -9
- package/src/components/HelperText/__tests__/HelperText.test.tsx +13 -13
- package/src/components/HelperText/__tests__/__snapshots__/HelperText.test.tsx.snap +25 -30
- package/src/components/Hint/__tests__/Hint.test.tsx +2 -2
- package/src/components/Hint/__tests__/__snapshots__/Hint.test.tsx.snap +2 -2
- package/src/components/InputGroup/__tests__/InputGroup.test.tsx +2 -2
- package/src/components/InputGroup/__tests__/InputGroupText.test.tsx +0 -1
- package/src/components/JumpLinks/__tests__/JumpLinks.test.tsx +10 -10
- package/src/components/JumpLinks/__tests__/__snapshots__/JumpLinks.test.tsx.snap +11 -13
- package/src/components/Label/__tests__/Label.test.tsx +33 -66
- package/src/components/Label/__tests__/__snapshots__/Label.test.tsx.snap +416 -26
- package/src/components/List/__tests__/Generated/ListItem.test.tsx +2 -2
- package/src/components/List/__tests__/Generated/__snapshots__/ListItem.test.tsx.snap +2 -2
- package/src/components/List/__tests__/List.test.tsx +0 -1
- package/src/components/LoginPage/__tests__/Generated/LoginFooter.test.tsx +2 -2
- package/src/components/LoginPage/__tests__/Generated/LoginHeader.test.tsx +2 -2
- package/src/components/LoginPage/__tests__/Generated/__snapshots__/LoginFooter.test.tsx.snap +2 -2
- package/src/components/LoginPage/__tests__/Generated/__snapshots__/LoginHeader.test.tsx.snap +2 -2
- package/src/components/LoginPage/__tests__/Login.test.tsx +2 -2
- package/src/components/LoginPage/__tests__/LoginFooterItem.test.tsx +1 -1
- package/src/components/LoginPage/__tests__/LoginForm.test.tsx +9 -7
- package/src/components/LoginPage/__tests__/LoginMainBody.test.tsx +5 -5
- package/src/components/LoginPage/__tests__/LoginMainFooter.test.tsx +5 -5
- package/src/components/LoginPage/__tests__/LoginMainFooterBandItem.test.tsx +1 -1
- package/src/components/LoginPage/__tests__/LoginMainFooterLinksItem.test.tsx +7 -7
- package/src/components/LoginPage/__tests__/LoginMainHeader.test.tsx +7 -7
- package/src/components/LoginPage/__tests__/LoginPage.test.tsx +2 -2
- package/src/components/LoginPage/__tests__/__snapshots__/Login.test.tsx.snap +3 -4
- package/src/components/LoginPage/__tests__/__snapshots__/LoginForm.test.tsx.snap +402 -3
- package/src/components/LoginPage/__tests__/__snapshots__/LoginMainBody.test.tsx.snap +14 -2
- package/src/components/LoginPage/__tests__/__snapshots__/LoginMainFooter.test.tsx.snap +14 -2
- package/src/components/LoginPage/__tests__/__snapshots__/LoginMainFooterLinksItem.test.tsx.snap +43 -3
- package/src/components/LoginPage/__tests__/__snapshots__/LoginMainHeader.test.tsx.snap +35 -3
- package/src/components/LoginPage/__tests__/__snapshots__/LoginPage.test.tsx.snap +2 -3
- package/src/components/Masthead/__tests__/Masthead.test.tsx +30 -30
- package/src/components/Masthead/__tests__/__snapshots__/Masthead.test.tsx.snap +44 -44
- package/src/components/Menu/__tests__/Menu.test.tsx +1 -1
- package/src/components/MenuToggle/__tests__/MenuToggle.test.tsx +18 -18
- package/src/components/MenuToggle/__tests__/__snapshots__/MenuToggle.test.tsx.snap +18 -18
- package/src/components/Modal/__tests__/Modal.test.tsx +5 -6
- package/src/components/Modal/__tests__/ModalBox.test.tsx +12 -12
- package/src/components/Modal/__tests__/ModalBoxBody.test.tsx +2 -2
- package/src/components/Modal/__tests__/ModalBoxDescription.test.tsx +2 -6
- package/src/components/Modal/__tests__/ModalBoxFooter.test.tsx +4 -2
- package/src/components/Modal/__tests__/ModalBoxHeader.test.tsx +4 -4
- package/src/components/Modal/__tests__/ModalBoxTitle.test.tsx +13 -13
- package/src/components/Modal/__tests__/ModalContent.test.tsx +34 -22
- package/src/components/Modal/__tests__/__snapshots__/ModalBox.test.tsx.snap +12 -12
- package/src/components/Modal/__tests__/__snapshots__/ModalBoxBody.test.tsx.snap +2 -2
- package/src/components/Modal/__tests__/__snapshots__/ModalBoxDescription.test.tsx.snap +2 -2
- package/src/components/Modal/__tests__/__snapshots__/ModalBoxFooter.test.tsx.snap +2 -2
- package/src/components/Modal/__tests__/__snapshots__/ModalBoxHeader.test.tsx.snap +4 -4
- package/src/components/Modal/__tests__/__snapshots__/ModalBoxTitle.test.tsx.snap +12 -13
- package/src/components/Modal/__tests__/__snapshots__/ModalContent.test.tsx.snap +16 -23
- package/src/components/MultipleFileUpload/__tests__/MultipleFileUploadTitleIcon.test.tsx +2 -2
- package/src/components/MultipleFileUpload/__tests__/__snapshots__/MultipleFileUploadTitleIcon.test.tsx.snap +0 -2
- package/src/components/Nav/__tests__/Generated/NavExpandable.test.tsx +3 -3
- package/src/components/Nav/__tests__/Generated/NavGroup.test.tsx +2 -2
- package/src/components/Nav/__tests__/Generated/NavItem.test.tsx +2 -2
- package/src/components/Nav/__tests__/Generated/NavList.test.tsx +2 -2
- package/src/components/Nav/__tests__/Generated/__snapshots__/NavExpandable.test.tsx.snap +2 -2
- package/src/components/Nav/__tests__/Generated/__snapshots__/NavGroup.test.tsx.snap +2 -2
- package/src/components/Nav/__tests__/Generated/__snapshots__/NavItem.test.tsx.snap +2 -2
- package/src/components/Nav/__tests__/Generated/__snapshots__/NavList.test.tsx.snap +2 -2
- package/src/components/Nav/__tests__/Nav.test.tsx +1 -1
- package/src/components/NotificationBadge/__tests__/NotificationBadge.test.tsx +10 -6
- package/src/components/NotificationBadge/__tests__/__snapshots__/NotificationBadge.test.tsx.snap +12 -14
- package/src/components/NotificationDrawer/__tests__/NotificationDrawer.test.tsx +1 -1
- package/src/components/NotificationDrawer/__tests__/NotificationDrawerBody.test.tsx +1 -1
- package/src/components/NotificationDrawer/__tests__/NotificationDrawerGroup.test.tsx +13 -3
- package/src/components/NotificationDrawer/__tests__/NotificationDrawerGroupList.test.tsx +1 -1
- package/src/components/NotificationDrawer/__tests__/NotificationDrawerHeader.test.tsx +1 -1
- package/src/components/NotificationDrawer/__tests__/NotificationDrawerList.test.tsx +1 -1
- package/src/components/NotificationDrawer/__tests__/NotificationDrawerListItem.test.tsx +1 -1
- package/src/components/NotificationDrawer/__tests__/NotificationDrawerListItemBody.test.tsx +1 -1
- package/src/components/NotificationDrawer/__tests__/NotificationDrawerListItemHeader.test.tsx +10 -4
- package/src/components/NumberInput/__tests__/NumberInput.test.tsx +20 -20
- package/src/components/NumberInput/__tests__/__snapshots__/NumberInput.test.tsx.snap +20 -20
- package/src/components/OptionsMenu/__tests__/Generated/OptionsMenuItem.test.tsx +2 -2
- package/src/components/OptionsMenu/__tests__/Generated/OptionsMenuItemGroup.test.tsx +3 -3
- package/src/components/OptionsMenu/__tests__/Generated/OptionsMenuSeparator.test.tsx +2 -2
- package/src/components/OptionsMenu/__tests__/Generated/OptionsMenuToggle.test.tsx +2 -4
- package/src/components/OptionsMenu/__tests__/Generated/OptionsMenuToggleWithText.test.tsx +2 -6
- package/src/components/OptionsMenu/__tests__/Generated/__snapshots__/OptionsMenuItem.test.tsx.snap +2 -2
- package/src/components/OptionsMenu/__tests__/Generated/__snapshots__/OptionsMenuItemGroup.test.tsx.snap +3 -5
- package/src/components/OptionsMenu/__tests__/Generated/__snapshots__/OptionsMenuSeparator.test.tsx.snap +2 -2
- package/src/components/OptionsMenu/__tests__/Generated/__snapshots__/OptionsMenuToggle.test.tsx.snap +2 -2
- package/src/components/OptionsMenu/__tests__/Generated/__snapshots__/OptionsMenuToggleWithText.test.tsx.snap +2 -2
- package/src/components/OptionsMenu/__tests__/OptionsMenu.test.tsx +16 -16
- package/src/components/OptionsMenu/__tests__/__snapshots__/OptionsMenu.test.tsx.snap +16 -16
- package/src/components/OverflowMenu/__tests__/Generated/OverflowMenuControl.test.tsx +4 -2
- package/src/components/OverflowMenu/__tests__/Generated/OverflowMenuDropdownItem.test.tsx +2 -2
- package/src/components/OverflowMenu/__tests__/Generated/__snapshots__/OverflowMenuControl.test.tsx.snap +3 -5
- package/src/components/OverflowMenu/__tests__/Generated/__snapshots__/OverflowMenuDropdownItem.test.tsx.snap +2 -2
- package/src/components/OverflowMenu/__tests__/OverflowMenu.test.tsx +2 -3
- package/src/components/OverflowMenu/__tests__/OverflowMenuControl.test.tsx +0 -1
- package/src/components/OverflowMenu/__tests__/OverflowMenuGroup.test.tsx +0 -1
- package/src/components/OverflowMenu/__tests__/OverflowMenuItem.test.tsx +0 -1
- package/src/components/Page/__tests__/Generated/PageHeaderTools.test.tsx +2 -2
- package/src/components/Page/__tests__/Generated/PageHeaderToolsGroup.test.tsx +2 -4
- package/src/components/Page/__tests__/Generated/PageHeaderToolsItem.test.tsx +2 -2
- package/src/components/Page/__tests__/Generated/PageSidebar.test.tsx +2 -2
- package/src/components/Page/__tests__/Generated/__snapshots__/PageHeaderTools.test.tsx.snap +2 -2
- package/src/components/Page/__tests__/Generated/__snapshots__/PageHeaderToolsGroup.test.tsx.snap +2 -2
- package/src/components/Page/__tests__/Generated/__snapshots__/PageHeaderToolsItem.test.tsx.snap +2 -2
- package/src/components/Page/__tests__/Generated/__snapshots__/PageSidebar.test.tsx.snap +2 -2
- package/src/components/Page/__tests__/Page.test.tsx +0 -1
- package/src/components/Page/__tests__/PageBreadcrumb.test.tsx +14 -14
- package/src/components/Page/__tests__/PageGroup.test.tsx +12 -12
- package/src/components/Page/__tests__/PageHeader.test.tsx +2 -2
- package/src/components/Page/__tests__/PageNavigation.test.tsx +14 -14
- package/src/components/Page/__tests__/PageSection.test.tsx +30 -30
- package/src/components/Page/__tests__/__snapshots__/PageBreadcrumb.test.tsx.snap +14 -14
- package/src/components/Page/__tests__/__snapshots__/PageGroup.test.tsx.snap +12 -12
- package/src/components/Page/__tests__/__snapshots__/PageHeader.test.tsx.snap +2 -2
- package/src/components/Page/__tests__/__snapshots__/PageNavigation.test.tsx.snap +14 -14
- package/src/components/Page/__tests__/__snapshots__/PageSection.test.tsx.snap +30 -30
- package/src/components/Pagination/__tests__/Generated/Navigation.test.tsx +2 -2
- package/src/components/Pagination/__tests__/Generated/OptionsToggle.test.tsx +2 -2
- package/src/components/Pagination/__tests__/Generated/PaginationOptionsMenu.test.tsx +2 -2
- package/src/components/Pagination/__tests__/Generated/ToggleTemplate.test.tsx +2 -2
- package/src/components/Pagination/__tests__/Generated/__snapshots__/Navigation.test.tsx.snap +2 -2
- package/src/components/Pagination/__tests__/Generated/__snapshots__/OptionsToggle.test.tsx.snap +2 -2
- package/src/components/Pagination/__tests__/Generated/__snapshots__/PaginationOptionsMenu.test.tsx.snap +2 -2
- package/src/components/Pagination/__tests__/Generated/__snapshots__/ToggleTemplate.test.tsx.snap +5 -10
- package/src/components/Pagination/__tests__/Pagination.test.tsx +0 -1
- package/src/components/Panel/__tests__/Panel.test.tsx +18 -18
- package/src/components/Panel/__tests__/__snapshots__/Panel.test.tsx.snap +18 -18
- package/src/components/Popover/__tests__/Generated/PopoverArrow.test.tsx +2 -2
- package/src/components/Popover/__tests__/Generated/PopoverBody.test.tsx +2 -2
- package/src/components/Popover/__tests__/Generated/PopoverCloseButton.test.tsx +2 -2
- package/src/components/Popover/__tests__/Generated/PopoverContent.test.tsx +2 -2
- package/src/components/Popover/__tests__/Generated/PopoverDialog.test.tsx +2 -2
- package/src/components/Popover/__tests__/Generated/PopoverFooter.test.tsx +2 -2
- package/src/components/Popover/__tests__/Generated/PopoverHeader.test.tsx +2 -2
- package/src/components/Popover/__tests__/Generated/__snapshots__/PopoverArrow.test.tsx.snap +2 -2
- package/src/components/Popover/__tests__/Generated/__snapshots__/PopoverBody.test.tsx.snap +2 -2
- package/src/components/Popover/__tests__/Generated/__snapshots__/PopoverCloseButton.test.tsx.snap +2 -2
- package/src/components/Popover/__tests__/Generated/__snapshots__/PopoverContent.test.tsx.snap +2 -2
- package/src/components/Popover/__tests__/Generated/__snapshots__/PopoverDialog.test.tsx.snap +2 -2
- package/src/components/Popover/__tests__/Generated/__snapshots__/PopoverFooter.test.tsx.snap +2 -2
- package/src/components/Popover/__tests__/Generated/__snapshots__/PopoverHeader.test.tsx.snap +2 -2
- package/src/components/Popover/__tests__/Popover.test.tsx +8 -8
- package/src/components/Popover/__tests__/__snapshots__/Popover.test.tsx.snap +8 -8
- package/src/components/Progress/__tests__/Generated/ProgressBar.test.tsx +2 -2
- package/src/components/Progress/__tests__/Generated/ProgressContainer.test.tsx +2 -3
- package/src/components/Progress/__tests__/Generated/__snapshots__/ProgressBar.test.tsx.snap +2 -2
- package/src/components/Progress/__tests__/Generated/__snapshots__/ProgressContainer.test.tsx.snap +2 -2
- package/src/components/Progress/__tests__/Progress.test.tsx +27 -27
- package/src/components/Progress/__tests__/__snapshots__/Progress.test.tsx.snap +40 -40
- package/src/components/ProgressStepper/__tests__/ProgressStepper.test.tsx +24 -24
- package/src/components/ProgressStepper/__tests__/__snapshots__/ProgressStepper.test.tsx.snap +40 -46
- package/src/components/Radio/__tests__/Radio.test.tsx +19 -8
- package/src/components/SearchInput/__tests__/SearchInput.test.tsx +5 -6
- package/src/components/Select/__tests__/Select.test.tsx +1 -2
- package/src/components/Select/__tests__/SelectGroup.test.tsx +12 -5
- package/src/components/Select/__tests__/SelectOption.test.tsx +110 -33
- package/src/components/Select/__tests__/__snapshots__/SelectGroup.test.tsx.snap +22 -1
- package/src/components/Select/__tests__/__snapshots__/SelectOption.test.tsx.snap +223 -10
- package/src/components/SimpleList/__tests__/Generated/SimpleListGroup.test.tsx +2 -2
- package/src/components/SimpleList/__tests__/Generated/SimpleListItem.test.tsx +2 -2
- package/src/components/SimpleList/__tests__/Generated/__snapshots__/SimpleListGroup.test.tsx.snap +2 -2
- package/src/components/SimpleList/__tests__/Generated/__snapshots__/SimpleListItem.test.tsx.snap +2 -2
- package/src/components/SimpleList/__tests__/SimpleList.test.tsx +2 -3
- package/src/components/Skeleton/__tests__/Skeleton.test.tsx +14 -12
- package/src/components/Skeleton/__tests__/__snapshots__/Skeleton.test.tsx.snap +42 -42
- package/src/components/SkipToContent/__tests__/SkipToContent.test.tsx +4 -4
- package/src/components/SkipToContent/__tests__/__snapshots__/SkipToContent.test.tsx.snap +4 -4
- package/src/components/Slider/_tests_/Slider.test.tsx +22 -18
- package/src/components/Slider/_tests_/__snapshots__/Slider.test.tsx.snap +20 -22
- package/src/components/Spinner/__tests__/Spinner.test.tsx +10 -10
- package/src/components/Spinner/__tests__/__snapshots__/Spinner.test.tsx.snap +10 -10
- package/src/components/Switch/__tests__/Switch.test.tsx +18 -9
- package/src/components/Tabs/__tests__/Generated/TabContent.test.tsx +2 -2
- package/src/components/Tabs/__tests__/Generated/__snapshots__/TabContent.test.tsx.snap +2 -2
- package/src/components/Tabs/__tests__/Tab.test.tsx +3 -3
- package/src/components/Tabs/__tests__/TabButton.test.tsx +2 -2
- package/src/components/Tabs/__tests__/Tabs.test.tsx +99 -42
- package/src/components/Tabs/__tests__/__snapshots__/Tab.test.tsx.snap +2 -2
- package/src/components/Tabs/__tests__/__snapshots__/TabButton.test.tsx.snap +2 -2
- package/src/components/Tabs/__tests__/__snapshots__/Tabs.test.tsx.snap +29 -29
- package/src/components/Text/__tests__/Generated/TextContent.test.tsx +2 -2
- package/src/components/Text/__tests__/Generated/TextList.test.tsx +2 -2
- package/src/components/Text/__tests__/Generated/TextListItem.test.tsx +2 -2
- package/src/components/Text/__tests__/Generated/__snapshots__/TextContent.test.tsx.snap +2 -2
- package/src/components/Text/__tests__/Generated/__snapshots__/TextList.test.tsx.snap +2 -2
- package/src/components/Text/__tests__/Generated/__snapshots__/TextListItem.test.tsx.snap +2 -2
- package/src/components/Text/__tests__/Text.test.tsx +2 -2
- package/src/components/Text/__tests__/__snapshots__/Text.test.tsx.snap +3 -4
- package/src/components/TextArea/__tests__/TextArea.test.tsx +10 -7
- package/src/components/TextInput/__tests__/TextInput.test.tsx +11 -8
- package/src/components/TextInputGroup/__tests__/TextInputGroupMain.test.tsx +3 -3
- package/src/components/Tile/__tests__/Tile.test.tsx +14 -14
- package/src/components/Tile/__tests__/__snapshots__/Tile.test.tsx.snap +14 -14
- package/src/components/TimePicker/__tests__/TimePicker.test.tsx +10 -5
- package/src/components/Title/__tests__/Title.test.tsx +0 -3
- package/src/components/ToggleGroup/__tests__/ToggleGroup.test.tsx +12 -4
- package/src/components/ToggleGroup/__tests__/ToggleGroupItemElement.test.tsx +10 -6
- package/src/components/ToggleGroup/__tests__/__snapshots__/ToggleGroupItemElement.test.tsx.snap +6 -6
- package/src/components/Toolbar/__tests__/Generated/ToolbarChipGroupContent.test.tsx +2 -2
- package/src/components/Toolbar/__tests__/Generated/ToolbarContent.test.tsx +2 -2
- package/src/components/Toolbar/__tests__/Generated/ToolbarExpandableContent.test.tsx +2 -2
- package/src/components/Toolbar/__tests__/Generated/ToolbarGroup.test.tsx +2 -2
- package/src/components/Toolbar/__tests__/Generated/__snapshots__/ToolbarChipGroupContent.test.tsx.snap +2 -2
- package/src/components/Toolbar/__tests__/Generated/__snapshots__/ToolbarContent.test.tsx.snap +2 -2
- package/src/components/Toolbar/__tests__/Generated/__snapshots__/ToolbarExpandableContent.test.tsx.snap +2 -2
- package/src/components/Toolbar/__tests__/Generated/__snapshots__/ToolbarGroup.test.tsx.snap +2 -2
- package/src/components/Toolbar/__tests__/Toolbar.test.tsx +7 -9
- package/src/components/Toolbar/__tests__/ToolbarItem.test.tsx +3 -3
- package/src/components/Toolbar/__tests__/ToolbarToggleGroup.test.tsx +1 -1
- package/src/components/Toolbar/__tests__/__snapshots__/Toolbar.test.tsx.snap +501 -3
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.test.tsx.snap +10 -1
- package/src/components/Tooltip/__tests__/Generated/TooltipArrow.test.tsx +2 -2
- package/src/components/Tooltip/__tests__/Generated/TooltipContent.test.tsx +4 -2
- package/src/components/Tooltip/__tests__/Generated/__snapshots__/TooltipArrow.test.tsx.snap +2 -2
- package/src/components/Tooltip/__tests__/Generated/__snapshots__/TooltipContent.test.tsx.snap +2 -2
- package/src/components/Tooltip/__tests__/Tooltip.test.tsx +2 -2
- package/src/components/Tooltip/__tests__/__snapshots__/Tooltip.test.tsx.snap +2 -2
- package/src/components/TreeView/__tests__/TreeView.test.tsx +46 -34
- package/src/components/TreeView/__tests__/__snapshots__/TreeView.test.tsx.snap +22 -22
- package/src/components/Truncate/__tests__/Truncate.test.tsx +18 -6
- package/src/components/Truncate/__tests__/__snapshots__/Truncate.test.tsx.snap +7 -8
- package/src/components/Wizard/__tests__/Generated/WizardBody.test.tsx +2 -2
- package/src/components/Wizard/__tests__/Generated/WizardFooter.test.tsx +2 -2
- package/src/components/Wizard/__tests__/Generated/WizardFooterInternal.test.tsx +3 -3
- package/src/components/Wizard/__tests__/Generated/WizardHeader.test.tsx +2 -2
- package/src/components/Wizard/__tests__/Generated/WizardNav.test.tsx +2 -2
- package/src/components/Wizard/__tests__/Generated/WizardNavItem.test.tsx +2 -2
- package/src/components/Wizard/__tests__/Generated/WizardToggle.test.tsx +4 -4
- package/src/components/Wizard/__tests__/Generated/__snapshots__/WizardBody.test.tsx.snap +2 -2
- package/src/components/Wizard/__tests__/Generated/__snapshots__/WizardFooter.test.tsx.snap +2 -2
- package/src/components/Wizard/__tests__/Generated/__snapshots__/WizardFooterInternal.test.tsx.snap +2 -2
- package/src/components/Wizard/__tests__/Generated/__snapshots__/WizardHeader.test.tsx.snap +7 -7
- package/src/components/Wizard/__tests__/Generated/__snapshots__/WizardNav.test.tsx.snap +2 -2
- package/src/components/Wizard/__tests__/Generated/__snapshots__/WizardNavItem.test.tsx.snap +2 -2
- package/src/components/Wizard/__tests__/Generated/__snapshots__/WizardToggle.test.tsx.snap +2 -2
- package/src/components/Wizard/__tests__/Wizard.test.tsx +1 -4
- package/src/helpers/FocusTrap/__tests__/Generated/FocusTrap.test.tsx +2 -2
- package/src/helpers/FocusTrap/__tests__/Generated/__snapshots__/FocusTrap.test.tsx.snap +2 -2
- package/src/helpers/GenerateId/__tests__/GenerateId.test.tsx +2 -2
- package/src/helpers/GenerateId/__tests__/__snapshots__/GenerateId.test.tsx.snap +2 -2
- package/src/helpers/Popper/__tests__/Generated/FindRefWrapper.test.tsx +2 -2
- package/src/helpers/Popper/__tests__/Generated/__snapshots__/FindRefWrapper.test.tsx.snap +2 -2
- package/src/helpers/__tests__/util.test.ts +2 -2
- package/src/layouts/Bullseye/__tests__/Bullseye.test.tsx +1 -4
- package/src/layouts/Flex/__tests__/Flex.test.tsx +0 -1
- package/src/layouts/Flex/__tests__/Generated/FlexItem.test.tsx +2 -2
- package/src/layouts/Flex/__tests__/Generated/__snapshots__/FlexItem.test.tsx.snap +2 -2
- package/src/layouts/Gallery/__tests__/Gallery.test.tsx +8 -8
- package/src/layouts/Gallery/__tests__/Generated/GalleryItem.test.tsx +2 -2
- package/src/layouts/Gallery/__tests__/Generated/__snapshots__/GalleryItem.test.tsx.snap +2 -2
- package/src/layouts/Gallery/__tests__/__snapshots__/Gallery.test.tsx.snap +6 -6
- package/src/layouts/Grid/__tests__/Grid.test.tsx +6 -6
- package/src/layouts/Grid/__tests__/GridItem.test.tsx +12 -12
- package/src/layouts/Grid/__tests__/__snapshots__/Grid.test.tsx.snap +4 -4
- package/src/layouts/Grid/__tests__/__snapshots__/GridItem.test.tsx.snap +36 -36
- package/src/layouts/Level/__tests__/Generated/LevelItem.test.tsx +2 -2
- package/src/layouts/Level/__tests__/Generated/__snapshots__/LevelItem.test.tsx.snap +2 -2
- package/src/layouts/Level/__tests__/Level.test.tsx +4 -4
- package/src/layouts/Level/__tests__/__snapshots__/Level.test.tsx.snap +4 -4
- package/src/layouts/Split/__tests__/Generated/SplitItem.test.tsx +2 -2
- package/src/layouts/Split/__tests__/Generated/__snapshots__/SplitItem.test.tsx.snap +2 -2
- package/src/layouts/Split/__tests__/Split.test.tsx +8 -8
- package/src/layouts/Split/__tests__/__snapshots__/Split.test.tsx.snap +8 -8
- package/src/layouts/Stack/__tests__/Generated/StackItem.test.tsx +2 -2
- package/src/layouts/Stack/__tests__/Generated/__snapshots__/StackItem.test.tsx.snap +2 -2
- package/src/layouts/Stack/__tests__/Stack.test.tsx +6 -6
- package/src/layouts/Stack/__tests__/__snapshots__/Stack.test.tsx.snap +6 -6
|
@@ -6,70 +6,70 @@ import InProgressIcon from '@patternfly/react-icons/dist/esm/icons/in-progress-i
|
|
|
6
6
|
|
|
7
7
|
describe('ProgressStepper', () => {
|
|
8
8
|
test('renders content', () => {
|
|
9
|
-
const
|
|
9
|
+
const { asFragment } = render(
|
|
10
10
|
<ProgressStepper>
|
|
11
11
|
<ProgressStep>First</ProgressStep>
|
|
12
12
|
<ProgressStep>Second</ProgressStep>
|
|
13
13
|
<ProgressStep>Third</ProgressStep>
|
|
14
14
|
</ProgressStepper>
|
|
15
15
|
);
|
|
16
|
-
expect(
|
|
16
|
+
expect(asFragment()).toMatchSnapshot();
|
|
17
17
|
});
|
|
18
18
|
|
|
19
19
|
test('gets custom class and id', () => {
|
|
20
|
-
const
|
|
20
|
+
const { asFragment } = render(
|
|
21
21
|
<ProgressStepper className="custom-class" id="test-id">
|
|
22
22
|
<ProgressStep>First</ProgressStep>
|
|
23
23
|
<ProgressStep>Second</ProgressStep>
|
|
24
24
|
<ProgressStep>Third</ProgressStep>
|
|
25
25
|
</ProgressStepper>
|
|
26
26
|
);
|
|
27
|
-
expect(
|
|
27
|
+
expect(asFragment()).toMatchSnapshot();
|
|
28
28
|
});
|
|
29
29
|
|
|
30
30
|
test('renders vertically', () => {
|
|
31
|
-
const
|
|
31
|
+
const { asFragment } = render(
|
|
32
32
|
<ProgressStepper isVertical>
|
|
33
33
|
<ProgressStep>First</ProgressStep>
|
|
34
34
|
<ProgressStep>Second</ProgressStep>
|
|
35
35
|
<ProgressStep>Third</ProgressStep>
|
|
36
36
|
</ProgressStepper>
|
|
37
37
|
);
|
|
38
|
-
expect(
|
|
38
|
+
expect(asFragment()).toMatchSnapshot();
|
|
39
39
|
});
|
|
40
40
|
|
|
41
41
|
test('renders compact', () => {
|
|
42
|
-
const
|
|
42
|
+
const { asFragment } = render(
|
|
43
43
|
<ProgressStepper isCompact>
|
|
44
44
|
<ProgressStep>First</ProgressStep>
|
|
45
45
|
<ProgressStep>Second</ProgressStep>
|
|
46
46
|
<ProgressStep>Third</ProgressStep>
|
|
47
47
|
</ProgressStepper>
|
|
48
48
|
);
|
|
49
|
-
expect(
|
|
49
|
+
expect(asFragment()).toMatchSnapshot();
|
|
50
50
|
});
|
|
51
51
|
|
|
52
52
|
test('renders center aligned', () => {
|
|
53
|
-
const
|
|
53
|
+
const { asFragment } = render(
|
|
54
54
|
<ProgressStepper isCenterAligned>
|
|
55
55
|
<ProgressStep>First</ProgressStep>
|
|
56
56
|
<ProgressStep>Second</ProgressStep>
|
|
57
57
|
<ProgressStep>Third</ProgressStep>
|
|
58
58
|
</ProgressStepper>
|
|
59
59
|
);
|
|
60
|
-
expect(
|
|
60
|
+
expect(asFragment()).toMatchSnapshot();
|
|
61
61
|
});
|
|
62
62
|
});
|
|
63
63
|
|
|
64
64
|
describe('ProgressStep', () => {
|
|
65
65
|
test('renders content', () => {
|
|
66
|
-
const
|
|
67
|
-
expect(
|
|
66
|
+
const { asFragment } = render(<ProgressStep>Title</ProgressStep>);
|
|
67
|
+
expect(asFragment()).toMatchSnapshot();
|
|
68
68
|
});
|
|
69
69
|
|
|
70
70
|
Object.values(['default', 'success', 'info', 'pending', 'warning', 'danger']).forEach(variant => {
|
|
71
71
|
test(`renders ${variant} variant`, () => {
|
|
72
|
-
const
|
|
72
|
+
const { asFragment } = render(
|
|
73
73
|
<ProgressStep
|
|
74
74
|
variant={variant as 'default' | 'success' | 'info' | 'pending' | 'warning' | 'danger'}
|
|
75
75
|
aria-label={variant}
|
|
@@ -77,36 +77,36 @@ describe('ProgressStep', () => {
|
|
|
77
77
|
{variant} step
|
|
78
78
|
</ProgressStep>
|
|
79
79
|
);
|
|
80
|
-
expect(
|
|
80
|
+
expect(asFragment()).toMatchSnapshot();
|
|
81
81
|
});
|
|
82
82
|
});
|
|
83
83
|
|
|
84
84
|
test('renders current', () => {
|
|
85
|
-
const
|
|
86
|
-
expect(
|
|
85
|
+
const { asFragment } = render(<ProgressStep isCurrent>Title</ProgressStep>);
|
|
86
|
+
expect(asFragment()).toMatchSnapshot();
|
|
87
87
|
});
|
|
88
88
|
|
|
89
89
|
test('renders help text styling', () => {
|
|
90
|
-
const
|
|
91
|
-
expect(
|
|
90
|
+
const { asFragment } = render(<ProgressStep popoverRender={() => <div></div>}>Title</ProgressStep>);
|
|
91
|
+
expect(asFragment()).toMatchSnapshot();
|
|
92
92
|
});
|
|
93
93
|
|
|
94
94
|
test('renders custom icon', () => {
|
|
95
|
-
const
|
|
96
|
-
expect(
|
|
95
|
+
const { asFragment } = render(<ProgressStep icon={<InProgressIcon />}>Title</ProgressStep>);
|
|
96
|
+
expect(asFragment()).toMatchSnapshot();
|
|
97
97
|
});
|
|
98
98
|
|
|
99
99
|
test('renders custom null icon - removing default from variant', () => {
|
|
100
|
-
const
|
|
100
|
+
const { asFragment } = render(
|
|
101
101
|
<ProgressStep icon={null} variant="success">
|
|
102
102
|
Title
|
|
103
103
|
</ProgressStep>
|
|
104
104
|
);
|
|
105
|
-
expect(
|
|
105
|
+
expect(asFragment()).toMatchSnapshot();
|
|
106
106
|
});
|
|
107
107
|
|
|
108
108
|
test('renders description', () => {
|
|
109
|
-
const
|
|
110
|
-
expect(
|
|
109
|
+
const { asFragment } = render(<ProgressStep description="This is a description">Title</ProgressStep>);
|
|
110
|
+
expect(asFragment()).toMatchSnapshot();
|
|
111
111
|
});
|
|
112
112
|
});
|
package/src/components/ProgressStepper/__tests__/__snapshots__/ProgressStepper.test.tsx.snap
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`ProgressStep renders content 1`] = `
|
|
4
|
-
<
|
|
4
|
+
<DocumentFragment>
|
|
5
5
|
<li
|
|
6
6
|
class="pf-c-progress-stepper__step"
|
|
7
7
|
>
|
|
@@ -22,11 +22,11 @@ exports[`ProgressStep renders content 1`] = `
|
|
|
22
22
|
</div>
|
|
23
23
|
</div>
|
|
24
24
|
</li>
|
|
25
|
-
</
|
|
25
|
+
</DocumentFragment>
|
|
26
26
|
`;
|
|
27
27
|
|
|
28
28
|
exports[`ProgressStep renders current 1`] = `
|
|
29
|
-
<
|
|
29
|
+
<DocumentFragment>
|
|
30
30
|
<li
|
|
31
31
|
aria-current="step"
|
|
32
32
|
class="pf-c-progress-stepper__step pf-m-current"
|
|
@@ -48,11 +48,11 @@ exports[`ProgressStep renders current 1`] = `
|
|
|
48
48
|
</div>
|
|
49
49
|
</div>
|
|
50
50
|
</li>
|
|
51
|
-
</
|
|
51
|
+
</DocumentFragment>
|
|
52
52
|
`;
|
|
53
53
|
|
|
54
54
|
exports[`ProgressStep renders custom icon 1`] = `
|
|
55
|
-
<
|
|
55
|
+
<DocumentFragment>
|
|
56
56
|
<li
|
|
57
57
|
class="pf-c-progress-stepper__step"
|
|
58
58
|
>
|
|
@@ -87,11 +87,11 @@ exports[`ProgressStep renders custom icon 1`] = `
|
|
|
87
87
|
</div>
|
|
88
88
|
</div>
|
|
89
89
|
</li>
|
|
90
|
-
</
|
|
90
|
+
</DocumentFragment>
|
|
91
91
|
`;
|
|
92
92
|
|
|
93
93
|
exports[`ProgressStep renders custom null icon - removing default from variant 1`] = `
|
|
94
|
-
<
|
|
94
|
+
<DocumentFragment>
|
|
95
95
|
<li
|
|
96
96
|
class="pf-c-progress-stepper__step pf-m-success"
|
|
97
97
|
>
|
|
@@ -112,11 +112,11 @@ exports[`ProgressStep renders custom null icon - removing default from variant 1
|
|
|
112
112
|
</div>
|
|
113
113
|
</div>
|
|
114
114
|
</li>
|
|
115
|
-
</
|
|
115
|
+
</DocumentFragment>
|
|
116
116
|
`;
|
|
117
117
|
|
|
118
118
|
exports[`ProgressStep renders danger variant 1`] = `
|
|
119
|
-
<
|
|
119
|
+
<DocumentFragment>
|
|
120
120
|
<li
|
|
121
121
|
aria-label="danger"
|
|
122
122
|
class="pf-c-progress-stepper__step pf-m-danger"
|
|
@@ -148,16 +148,15 @@ exports[`ProgressStep renders danger variant 1`] = `
|
|
|
148
148
|
<div
|
|
149
149
|
class="pf-c-progress-stepper__step-title"
|
|
150
150
|
>
|
|
151
|
-
danger
|
|
152
|
-
step
|
|
151
|
+
danger step
|
|
153
152
|
</div>
|
|
154
153
|
</div>
|
|
155
154
|
</li>
|
|
156
|
-
</
|
|
155
|
+
</DocumentFragment>
|
|
157
156
|
`;
|
|
158
157
|
|
|
159
158
|
exports[`ProgressStep renders default variant 1`] = `
|
|
160
|
-
<
|
|
159
|
+
<DocumentFragment>
|
|
161
160
|
<li
|
|
162
161
|
aria-label="default"
|
|
163
162
|
class="pf-c-progress-stepper__step"
|
|
@@ -175,16 +174,15 @@ exports[`ProgressStep renders default variant 1`] = `
|
|
|
175
174
|
<div
|
|
176
175
|
class="pf-c-progress-stepper__step-title"
|
|
177
176
|
>
|
|
178
|
-
default
|
|
179
|
-
step
|
|
177
|
+
default step
|
|
180
178
|
</div>
|
|
181
179
|
</div>
|
|
182
180
|
</li>
|
|
183
|
-
</
|
|
181
|
+
</DocumentFragment>
|
|
184
182
|
`;
|
|
185
183
|
|
|
186
184
|
exports[`ProgressStep renders description 1`] = `
|
|
187
|
-
<
|
|
185
|
+
<DocumentFragment>
|
|
188
186
|
<li
|
|
189
187
|
class="pf-c-progress-stepper__step"
|
|
190
188
|
>
|
|
@@ -210,11 +208,11 @@ exports[`ProgressStep renders description 1`] = `
|
|
|
210
208
|
</div>
|
|
211
209
|
</div>
|
|
212
210
|
</li>
|
|
213
|
-
</
|
|
211
|
+
</DocumentFragment>
|
|
214
212
|
`;
|
|
215
213
|
|
|
216
214
|
exports[`ProgressStep renders help text styling 1`] = `
|
|
217
|
-
<
|
|
215
|
+
<DocumentFragment>
|
|
218
216
|
<li
|
|
219
217
|
class="pf-c-progress-stepper__step"
|
|
220
218
|
>
|
|
@@ -239,11 +237,11 @@ exports[`ProgressStep renders help text styling 1`] = `
|
|
|
239
237
|
</span>
|
|
240
238
|
</div>
|
|
241
239
|
</li>
|
|
242
|
-
</
|
|
240
|
+
</DocumentFragment>
|
|
243
241
|
`;
|
|
244
242
|
|
|
245
243
|
exports[`ProgressStep renders info variant 1`] = `
|
|
246
|
-
<
|
|
244
|
+
<DocumentFragment>
|
|
247
245
|
<li
|
|
248
246
|
aria-label="info"
|
|
249
247
|
class="pf-c-progress-stepper__step pf-m-info"
|
|
@@ -275,16 +273,15 @@ exports[`ProgressStep renders info variant 1`] = `
|
|
|
275
273
|
<div
|
|
276
274
|
class="pf-c-progress-stepper__step-title"
|
|
277
275
|
>
|
|
278
|
-
info
|
|
279
|
-
step
|
|
276
|
+
info step
|
|
280
277
|
</div>
|
|
281
278
|
</div>
|
|
282
279
|
</li>
|
|
283
|
-
</
|
|
280
|
+
</DocumentFragment>
|
|
284
281
|
`;
|
|
285
282
|
|
|
286
283
|
exports[`ProgressStep renders pending variant 1`] = `
|
|
287
|
-
<
|
|
284
|
+
<DocumentFragment>
|
|
288
285
|
<li
|
|
289
286
|
aria-label="pending"
|
|
290
287
|
class="pf-c-progress-stepper__step pf-m-pending"
|
|
@@ -302,16 +299,15 @@ exports[`ProgressStep renders pending variant 1`] = `
|
|
|
302
299
|
<div
|
|
303
300
|
class="pf-c-progress-stepper__step-title"
|
|
304
301
|
>
|
|
305
|
-
pending
|
|
306
|
-
step
|
|
302
|
+
pending step
|
|
307
303
|
</div>
|
|
308
304
|
</div>
|
|
309
305
|
</li>
|
|
310
|
-
</
|
|
306
|
+
</DocumentFragment>
|
|
311
307
|
`;
|
|
312
308
|
|
|
313
309
|
exports[`ProgressStep renders success variant 1`] = `
|
|
314
|
-
<
|
|
310
|
+
<DocumentFragment>
|
|
315
311
|
<li
|
|
316
312
|
aria-label="success"
|
|
317
313
|
class="pf-c-progress-stepper__step pf-m-success"
|
|
@@ -343,16 +339,15 @@ exports[`ProgressStep renders success variant 1`] = `
|
|
|
343
339
|
<div
|
|
344
340
|
class="pf-c-progress-stepper__step-title"
|
|
345
341
|
>
|
|
346
|
-
success
|
|
347
|
-
step
|
|
342
|
+
success step
|
|
348
343
|
</div>
|
|
349
344
|
</div>
|
|
350
345
|
</li>
|
|
351
|
-
</
|
|
346
|
+
</DocumentFragment>
|
|
352
347
|
`;
|
|
353
348
|
|
|
354
349
|
exports[`ProgressStep renders warning variant 1`] = `
|
|
355
|
-
<
|
|
350
|
+
<DocumentFragment>
|
|
356
351
|
<li
|
|
357
352
|
aria-label="warning"
|
|
358
353
|
class="pf-c-progress-stepper__step pf-m-warning"
|
|
@@ -384,16 +379,15 @@ exports[`ProgressStep renders warning variant 1`] = `
|
|
|
384
379
|
<div
|
|
385
380
|
class="pf-c-progress-stepper__step-title"
|
|
386
381
|
>
|
|
387
|
-
warning
|
|
388
|
-
step
|
|
382
|
+
warning step
|
|
389
383
|
</div>
|
|
390
384
|
</div>
|
|
391
385
|
</li>
|
|
392
|
-
</
|
|
386
|
+
</DocumentFragment>
|
|
393
387
|
`;
|
|
394
388
|
|
|
395
389
|
exports[`ProgressStepper gets custom class and id 1`] = `
|
|
396
|
-
<
|
|
390
|
+
<DocumentFragment>
|
|
397
391
|
<ol
|
|
398
392
|
class="pf-c-progress-stepper custom-class"
|
|
399
393
|
id="test-id"
|
|
@@ -459,11 +453,11 @@ exports[`ProgressStepper gets custom class and id 1`] = `
|
|
|
459
453
|
</div>
|
|
460
454
|
</li>
|
|
461
455
|
</ol>
|
|
462
|
-
</
|
|
456
|
+
</DocumentFragment>
|
|
463
457
|
`;
|
|
464
458
|
|
|
465
459
|
exports[`ProgressStepper renders center aligned 1`] = `
|
|
466
|
-
<
|
|
460
|
+
<DocumentFragment>
|
|
467
461
|
<ol
|
|
468
462
|
class="pf-c-progress-stepper pf-m-center"
|
|
469
463
|
>
|
|
@@ -528,11 +522,11 @@ exports[`ProgressStepper renders center aligned 1`] = `
|
|
|
528
522
|
</div>
|
|
529
523
|
</li>
|
|
530
524
|
</ol>
|
|
531
|
-
</
|
|
525
|
+
</DocumentFragment>
|
|
532
526
|
`;
|
|
533
527
|
|
|
534
528
|
exports[`ProgressStepper renders compact 1`] = `
|
|
535
|
-
<
|
|
529
|
+
<DocumentFragment>
|
|
536
530
|
<ol
|
|
537
531
|
class="pf-c-progress-stepper pf-m-compact"
|
|
538
532
|
>
|
|
@@ -597,11 +591,11 @@ exports[`ProgressStepper renders compact 1`] = `
|
|
|
597
591
|
</div>
|
|
598
592
|
</li>
|
|
599
593
|
</ol>
|
|
600
|
-
</
|
|
594
|
+
</DocumentFragment>
|
|
601
595
|
`;
|
|
602
596
|
|
|
603
597
|
exports[`ProgressStepper renders content 1`] = `
|
|
604
|
-
<
|
|
598
|
+
<DocumentFragment>
|
|
605
599
|
<ol
|
|
606
600
|
class="pf-c-progress-stepper"
|
|
607
601
|
>
|
|
@@ -666,11 +660,11 @@ exports[`ProgressStepper renders content 1`] = `
|
|
|
666
660
|
</div>
|
|
667
661
|
</li>
|
|
668
662
|
</ol>
|
|
669
|
-
</
|
|
663
|
+
</DocumentFragment>
|
|
670
664
|
`;
|
|
671
665
|
|
|
672
666
|
exports[`ProgressStepper renders vertically 1`] = `
|
|
673
|
-
<
|
|
667
|
+
<DocumentFragment>
|
|
674
668
|
<ol
|
|
675
669
|
class="pf-c-progress-stepper pf-m-vertical"
|
|
676
670
|
>
|
|
@@ -735,5 +729,5 @@ exports[`ProgressStepper renders vertically 1`] = `
|
|
|
735
729
|
</div>
|
|
736
730
|
</li>
|
|
737
731
|
</ol>
|
|
738
|
-
</
|
|
732
|
+
</DocumentFragment>
|
|
739
733
|
`;
|
|
@@ -2,7 +2,6 @@ import React from 'react';
|
|
|
2
2
|
|
|
3
3
|
import { render, screen } from '@testing-library/react';
|
|
4
4
|
import userEvent from '@testing-library/user-event';
|
|
5
|
-
import '@testing-library/jest-dom';
|
|
6
5
|
|
|
7
6
|
import { Radio } from '../Radio';
|
|
8
7
|
|
|
@@ -27,12 +26,16 @@ describe('Radio', () => {
|
|
|
27
26
|
});
|
|
28
27
|
|
|
29
28
|
test('isLabelBeforeButton', () => {
|
|
30
|
-
const { asFragment } = render(
|
|
29
|
+
const { asFragment } = render(
|
|
30
|
+
<Radio id="check" isLabelBeforeButton label="Radio label" aria-label="check" name="check" />
|
|
31
|
+
);
|
|
31
32
|
expect(asFragment()).toMatchSnapshot();
|
|
32
33
|
});
|
|
33
34
|
|
|
34
35
|
test('isLabelWrapped', () => {
|
|
35
|
-
const { asFragment } = render(
|
|
36
|
+
const { asFragment } = render(
|
|
37
|
+
<Radio id="check" isLabelWrapped label="Radio label" aria-label="check" name="check" />
|
|
38
|
+
);
|
|
36
39
|
expect(asFragment()).toMatchSnapshot();
|
|
37
40
|
});
|
|
38
41
|
|
|
@@ -43,22 +46,30 @@ describe('Radio', () => {
|
|
|
43
46
|
|
|
44
47
|
test('label is function', () => {
|
|
45
48
|
const functionLabel = () => <h1>Header</h1>;
|
|
46
|
-
const { asFragment } = render(
|
|
49
|
+
const { asFragment } = render(
|
|
50
|
+
<Radio label={functionLabel()} id="check" isChecked aria-label="check" name="check" />
|
|
51
|
+
);
|
|
47
52
|
expect(asFragment()).toMatchSnapshot();
|
|
48
53
|
});
|
|
49
54
|
|
|
50
55
|
test('label is node', () => {
|
|
51
|
-
const { asFragment } = render(
|
|
56
|
+
const { asFragment } = render(
|
|
57
|
+
<Radio label={<h1>Header</h1>} id="check" isChecked aria-label="check" name="check" />
|
|
58
|
+
);
|
|
52
59
|
expect(asFragment()).toMatchSnapshot();
|
|
53
60
|
});
|
|
54
61
|
|
|
55
62
|
test('passing class', () => {
|
|
56
|
-
const { asFragment } = render(
|
|
63
|
+
const { asFragment } = render(
|
|
64
|
+
<Radio label="label" className="class-123" id="check" isChecked aria-label="check" name="check" />
|
|
65
|
+
);
|
|
57
66
|
expect(asFragment()).toMatchSnapshot();
|
|
58
67
|
});
|
|
59
68
|
|
|
60
69
|
test('passing HTML attribute', () => {
|
|
61
|
-
const { asFragment } = render(
|
|
70
|
+
const { asFragment } = render(
|
|
71
|
+
<Radio label="label" aria-labelledby="labelId" id="check" isChecked aria-label="check" name="check" />
|
|
72
|
+
);
|
|
62
73
|
expect(asFragment()).toMatchSnapshot();
|
|
63
74
|
});
|
|
64
75
|
|
|
@@ -85,6 +96,6 @@ describe('Radio', () => {
|
|
|
85
96
|
|
|
86
97
|
render(<Radio id={undefined} name="check" aria-label="check" description="Text description..." />);
|
|
87
98
|
|
|
88
|
-
expect(myMock).
|
|
99
|
+
expect(myMock).toHaveBeenCalled();
|
|
89
100
|
});
|
|
90
101
|
});
|
|
@@ -2,7 +2,6 @@ import React from 'react';
|
|
|
2
2
|
|
|
3
3
|
import { render, screen } from '@testing-library/react';
|
|
4
4
|
import userEvent from '@testing-library/user-event';
|
|
5
|
-
import '@testing-library/jest-dom';
|
|
6
5
|
|
|
7
6
|
import { SearchInput } from '../SearchInput';
|
|
8
7
|
import { FormGroup } from '../../Form';
|
|
@@ -42,13 +41,13 @@ describe('SearchInput', () => {
|
|
|
42
41
|
expect(input.querySelector('.pf-c-badge')).toBeInTheDocument();
|
|
43
42
|
|
|
44
43
|
userEvent.click(screen.getByRole('button', { name: 'Previous' }));
|
|
45
|
-
expect(props.onPreviousClick).
|
|
44
|
+
expect(props.onPreviousClick).toHaveBeenCalled();
|
|
46
45
|
|
|
47
46
|
userEvent.click(screen.getByRole('button', { name: 'Next' }));
|
|
48
|
-
expect(props.onNextClick).
|
|
47
|
+
expect(props.onNextClick).toHaveBeenCalled();
|
|
49
48
|
|
|
50
49
|
userEvent.click(screen.getByRole('button', { name: 'Reset' }));
|
|
51
|
-
expect(props.onClear).
|
|
50
|
+
expect(props.onClear).toHaveBeenCalled();
|
|
52
51
|
});
|
|
53
52
|
|
|
54
53
|
test('hide clear button', () => {
|
|
@@ -75,7 +74,7 @@ describe('SearchInput', () => {
|
|
|
75
74
|
|
|
76
75
|
userEvent.click(screen.getByRole('button', { name: 'Search' }));
|
|
77
76
|
|
|
78
|
-
expect(props.onSearch).
|
|
77
|
+
expect(props.onSearch).toHaveBeenCalled();
|
|
79
78
|
expect(asFragment()).toMatchSnapshot();
|
|
80
79
|
});
|
|
81
80
|
|
|
@@ -103,7 +102,7 @@ describe('SearchInput', () => {
|
|
|
103
102
|
|
|
104
103
|
userEvent.click(screen.getByRole('button', { name: 'Search' }));
|
|
105
104
|
|
|
106
|
-
expect(props.onSearch).
|
|
105
|
+
expect(props.onSearch).toHaveBeenCalled();
|
|
107
106
|
expect(asFragment()).toMatchSnapshot();
|
|
108
107
|
});
|
|
109
108
|
});
|
|
@@ -2,7 +2,6 @@ import * as React from 'react';
|
|
|
2
2
|
|
|
3
3
|
import { configure, render, screen } from '@testing-library/react';
|
|
4
4
|
import userEvent from '@testing-library/user-event';
|
|
5
|
-
import '@testing-library/jest-dom';
|
|
6
5
|
|
|
7
6
|
import { Select } from '../Select';
|
|
8
7
|
import { SelectOption, SelectOptionObject } from '../SelectOption';
|
|
@@ -419,7 +418,7 @@ describe('API', () => {
|
|
|
419
418
|
</Select>
|
|
420
419
|
);
|
|
421
420
|
|
|
422
|
-
expect(myMock).not.
|
|
421
|
+
expect(myMock).not.toHaveBeenCalled();
|
|
423
422
|
});
|
|
424
423
|
});
|
|
425
424
|
|
|
@@ -1,21 +1,28 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import { render
|
|
3
|
+
import { render } from '@testing-library/react';
|
|
4
4
|
|
|
5
5
|
import { SelectGroup } from '../SelectGroup';
|
|
6
6
|
import { SelectProvider } from '../selectConstants';
|
|
7
7
|
|
|
8
8
|
describe('SelectGroup', () => {
|
|
9
9
|
test('renders with children successfully', () => {
|
|
10
|
-
render(
|
|
10
|
+
const { asFragment } = render(
|
|
11
11
|
<SelectProvider
|
|
12
|
-
value={{
|
|
12
|
+
value={{
|
|
13
|
+
onSelect: () => {},
|
|
14
|
+
onFavorite: () => {},
|
|
15
|
+
onClose: () => {},
|
|
16
|
+
variant: 'single',
|
|
17
|
+
inputIdPrefix: '',
|
|
18
|
+
shouldResetOnSelect: true
|
|
19
|
+
}}
|
|
13
20
|
>
|
|
14
|
-
<SelectGroup label="test"
|
|
21
|
+
<SelectGroup label="test">
|
|
15
22
|
<div>child</div>
|
|
16
23
|
</SelectGroup>
|
|
17
24
|
</SelectProvider>
|
|
18
25
|
);
|
|
19
|
-
expect(
|
|
26
|
+
expect(asFragment()).toMatchSnapshot();
|
|
20
27
|
});
|
|
21
28
|
});
|