@patternfly/react-core 4.206.3 → 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 +27 -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/demos/DateTimePicker.md +67 -51
- 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
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`HelperText default helper text variant applies successfully 1`] = `
|
|
4
|
-
<
|
|
4
|
+
<DocumentFragment>
|
|
5
5
|
<div
|
|
6
6
|
class="pf-c-helper-text__item"
|
|
7
7
|
>
|
|
8
8
|
<span
|
|
9
9
|
class="pf-c-helper-text__item-text"
|
|
10
10
|
>
|
|
11
|
-
default
|
|
12
|
-
help test text
|
|
11
|
+
default help test text
|
|
13
12
|
</span>
|
|
14
13
|
</div>
|
|
15
|
-
</
|
|
14
|
+
</DocumentFragment>
|
|
16
15
|
`;
|
|
17
16
|
|
|
18
17
|
exports[`HelperText dynamic helper text renders successfully 1`] = `
|
|
19
|
-
<
|
|
18
|
+
<DocumentFragment>
|
|
20
19
|
<div
|
|
21
20
|
class="pf-c-helper-text"
|
|
22
21
|
>
|
|
@@ -48,11 +47,11 @@ exports[`HelperText dynamic helper text renders successfully 1`] = `
|
|
|
48
47
|
</span>
|
|
49
48
|
</div>
|
|
50
49
|
</div>
|
|
51
|
-
</
|
|
50
|
+
</DocumentFragment>
|
|
52
51
|
`;
|
|
53
52
|
|
|
54
53
|
exports[`HelperText helper text block renders successfully 1`] = `
|
|
55
|
-
<
|
|
54
|
+
<DocumentFragment>
|
|
56
55
|
<div
|
|
57
56
|
class="pf-c-helper-text"
|
|
58
57
|
>
|
|
@@ -84,11 +83,11 @@ exports[`HelperText helper text block renders successfully 1`] = `
|
|
|
84
83
|
</span>
|
|
85
84
|
</div>
|
|
86
85
|
</div>
|
|
87
|
-
</
|
|
86
|
+
</DocumentFragment>
|
|
88
87
|
`;
|
|
89
88
|
|
|
90
89
|
exports[`HelperText icon helper text renders properly 1`] = `
|
|
91
|
-
<
|
|
90
|
+
<DocumentFragment>
|
|
92
91
|
<div
|
|
93
92
|
class="pf-c-helper-text"
|
|
94
93
|
>
|
|
@@ -120,41 +119,39 @@ exports[`HelperText icon helper text renders properly 1`] = `
|
|
|
120
119
|
</span>
|
|
121
120
|
</div>
|
|
122
121
|
</div>
|
|
123
|
-
</
|
|
122
|
+
</DocumentFragment>
|
|
124
123
|
`;
|
|
125
124
|
|
|
126
125
|
exports[`HelperText indeterminate helper text variant applies successfully 1`] = `
|
|
127
|
-
<
|
|
126
|
+
<DocumentFragment>
|
|
128
127
|
<div
|
|
129
128
|
class="pf-c-helper-text__item pf-m-indeterminate"
|
|
130
129
|
>
|
|
131
130
|
<span
|
|
132
131
|
class="pf-c-helper-text__item-text"
|
|
133
132
|
>
|
|
134
|
-
indeterminate
|
|
135
|
-
help test text
|
|
133
|
+
indeterminate help test text
|
|
136
134
|
</span>
|
|
137
135
|
</div>
|
|
138
|
-
</
|
|
136
|
+
</DocumentFragment>
|
|
139
137
|
`;
|
|
140
138
|
|
|
141
139
|
exports[`HelperText invalid helper text variant applies successfully 1`] = `
|
|
142
|
-
<
|
|
140
|
+
<DocumentFragment>
|
|
143
141
|
<div
|
|
144
142
|
class="pf-c-helper-text__item"
|
|
145
143
|
>
|
|
146
144
|
<span
|
|
147
145
|
class="pf-c-helper-text__item-text"
|
|
148
146
|
>
|
|
149
|
-
invalid
|
|
150
|
-
help test text
|
|
147
|
+
invalid help test text
|
|
151
148
|
</span>
|
|
152
149
|
</div>
|
|
153
|
-
</
|
|
150
|
+
</DocumentFragment>
|
|
154
151
|
`;
|
|
155
152
|
|
|
156
153
|
exports[`HelperText simple helper text renders successfully 1`] = `
|
|
157
|
-
<
|
|
154
|
+
<DocumentFragment>
|
|
158
155
|
<div
|
|
159
156
|
class="pf-c-helper-text"
|
|
160
157
|
>
|
|
@@ -168,26 +165,25 @@ exports[`HelperText simple helper text renders successfully 1`] = `
|
|
|
168
165
|
</span>
|
|
169
166
|
</div>
|
|
170
167
|
</div>
|
|
171
|
-
</
|
|
168
|
+
</DocumentFragment>
|
|
172
169
|
`;
|
|
173
170
|
|
|
174
171
|
exports[`HelperText success helper text variant applies successfully 1`] = `
|
|
175
|
-
<
|
|
172
|
+
<DocumentFragment>
|
|
176
173
|
<div
|
|
177
174
|
class="pf-c-helper-text__item pf-m-success"
|
|
178
175
|
>
|
|
179
176
|
<span
|
|
180
177
|
class="pf-c-helper-text__item-text"
|
|
181
178
|
>
|
|
182
|
-
success
|
|
183
|
-
help test text
|
|
179
|
+
success help test text
|
|
184
180
|
</span>
|
|
185
181
|
</div>
|
|
186
|
-
</
|
|
182
|
+
</DocumentFragment>
|
|
187
183
|
`;
|
|
188
184
|
|
|
189
185
|
exports[`HelperText variant comonent helper text renders properly 1`] = `
|
|
190
|
-
<
|
|
186
|
+
<DocumentFragment>
|
|
191
187
|
<ul
|
|
192
188
|
class="pf-c-helper-text"
|
|
193
189
|
>
|
|
@@ -210,20 +206,19 @@ exports[`HelperText variant comonent helper text renders properly 1`] = `
|
|
|
210
206
|
</span>
|
|
211
207
|
</li>
|
|
212
208
|
</ul>
|
|
213
|
-
</
|
|
209
|
+
</DocumentFragment>
|
|
214
210
|
`;
|
|
215
211
|
|
|
216
212
|
exports[`HelperText warning helper text variant applies successfully 1`] = `
|
|
217
|
-
<
|
|
213
|
+
<DocumentFragment>
|
|
218
214
|
<div
|
|
219
215
|
class="pf-c-helper-text__item pf-m-warning"
|
|
220
216
|
>
|
|
221
217
|
<span
|
|
222
218
|
class="pf-c-helper-text__item-text"
|
|
223
219
|
>
|
|
224
|
-
warning
|
|
225
|
-
help test text
|
|
220
|
+
warning help test text
|
|
226
221
|
</span>
|
|
227
222
|
</div>
|
|
228
|
-
</
|
|
223
|
+
</DocumentFragment>
|
|
229
224
|
`;
|
|
@@ -6,12 +6,12 @@ import { HintTitle } from '../HintTitle';
|
|
|
6
6
|
import { HintFooter } from '../HintFooter';
|
|
7
7
|
|
|
8
8
|
test('simple hint', () => {
|
|
9
|
-
const
|
|
9
|
+
const { asFragment } = render(
|
|
10
10
|
<Hint>
|
|
11
11
|
<HintTitle>Title</HintTitle>
|
|
12
12
|
<HintBody>Body</HintBody>
|
|
13
13
|
<HintFooter>Footer</HintFooter>
|
|
14
14
|
</Hint>
|
|
15
15
|
);
|
|
16
|
-
expect(
|
|
16
|
+
expect(asFragment()).toMatchSnapshot();
|
|
17
17
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`simple hint 1`] = `
|
|
4
|
-
<
|
|
4
|
+
<DocumentFragment>
|
|
5
5
|
<div
|
|
6
6
|
class="pf-c-hint"
|
|
7
7
|
>
|
|
@@ -24,5 +24,5 @@ exports[`simple hint 1`] = `
|
|
|
24
24
|
Footer
|
|
25
25
|
</div>
|
|
26
26
|
</div>
|
|
27
|
-
</
|
|
27
|
+
</DocumentFragment>
|
|
28
28
|
`;
|
|
@@ -11,13 +11,13 @@ describe('InputGroup', () => {
|
|
|
11
11
|
// In this test, TextInput is a form-control component and Button is not.
|
|
12
12
|
// If Button has an id props, this should be used in aria-describedby.
|
|
13
13
|
render(
|
|
14
|
-
<InputGroup
|
|
14
|
+
<InputGroup>
|
|
15
15
|
<TextInput value="some data" aria-label="some text" />
|
|
16
16
|
<Button variant="primary" id="button-id">
|
|
17
17
|
hello
|
|
18
18
|
</Button>
|
|
19
19
|
</InputGroup>
|
|
20
20
|
);
|
|
21
|
-
expect(screen.getByLabelText('some text').
|
|
21
|
+
expect(screen.getByLabelText('some text')).toHaveAttribute('aria-describedby', 'button-id');
|
|
22
22
|
});
|
|
23
23
|
});
|
|
@@ -5,51 +5,51 @@ import { JumpLinksItem } from '../JumpLinksItem';
|
|
|
5
5
|
import { JumpLinksList } from '../JumpLinksList';
|
|
6
6
|
|
|
7
7
|
test('simple jumplinks', () => {
|
|
8
|
-
const
|
|
8
|
+
const { asFragment } = render(
|
|
9
9
|
<JumpLinks>
|
|
10
10
|
<JumpLinksItem>Inactive section</JumpLinksItem>
|
|
11
11
|
<JumpLinksItem isActive>Active section</JumpLinksItem>
|
|
12
12
|
<JumpLinksItem>Inactive section</JumpLinksItem>
|
|
13
13
|
</JumpLinks>
|
|
14
14
|
);
|
|
15
|
-
expect(
|
|
15
|
+
expect(asFragment()).toMatchSnapshot();
|
|
16
16
|
});
|
|
17
17
|
|
|
18
18
|
test('jumplinks centered', () => {
|
|
19
|
-
const
|
|
19
|
+
const { asFragment } = render(
|
|
20
20
|
<JumpLinks isCentered>
|
|
21
21
|
<JumpLinksItem>Inactive section</JumpLinksItem>
|
|
22
22
|
<JumpLinksItem isActive>Active section</JumpLinksItem>
|
|
23
23
|
<JumpLinksItem>Inactive section</JumpLinksItem>
|
|
24
24
|
</JumpLinks>
|
|
25
25
|
);
|
|
26
|
-
expect(
|
|
26
|
+
expect(asFragment()).toMatchSnapshot();
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
test('jumplinks with label', () => {
|
|
30
|
-
const
|
|
30
|
+
const { asFragment } = render(
|
|
31
31
|
<JumpLinks isCentered label="Jump to section">
|
|
32
32
|
<JumpLinksItem>Inactive section</JumpLinksItem>
|
|
33
33
|
<JumpLinksItem isActive>Active section</JumpLinksItem>
|
|
34
34
|
<JumpLinksItem>Inactive section</JumpLinksItem>
|
|
35
35
|
</JumpLinks>
|
|
36
36
|
);
|
|
37
|
-
expect(
|
|
37
|
+
expect(asFragment()).toMatchSnapshot();
|
|
38
38
|
});
|
|
39
39
|
|
|
40
40
|
test('vertical with label', () => {
|
|
41
|
-
const
|
|
41
|
+
const { asFragment } = render(
|
|
42
42
|
<JumpLinks isVertical alwaysShowLabel label="Jump to section">
|
|
43
43
|
<JumpLinksItem>Inactive section</JumpLinksItem>
|
|
44
44
|
<JumpLinksItem isActive>Active section</JumpLinksItem>
|
|
45
45
|
<JumpLinksItem>Inactive section</JumpLinksItem>
|
|
46
46
|
</JumpLinks>
|
|
47
47
|
);
|
|
48
|
-
expect(
|
|
48
|
+
expect(asFragment()).toMatchSnapshot();
|
|
49
49
|
});
|
|
50
50
|
|
|
51
51
|
test('expandable vertical with subsection', () => {
|
|
52
|
-
const
|
|
52
|
+
const { asFragment } = render(
|
|
53
53
|
<JumpLinks isVertical label="Jump to section" expandable={{ default: 'expandable' }}>
|
|
54
54
|
<JumpLinksItem>Inactive section</JumpLinksItem>
|
|
55
55
|
<JumpLinksItem>
|
|
@@ -64,5 +64,5 @@ test('expandable vertical with subsection', () => {
|
|
|
64
64
|
<JumpLinksItem>Inactive section</JumpLinksItem>
|
|
65
65
|
</JumpLinks>
|
|
66
66
|
);
|
|
67
|
-
expect(
|
|
67
|
+
expect(asFragment()).toMatchSnapshot();
|
|
68
68
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`expandable vertical with subsection 1`] = `
|
|
4
|
-
<
|
|
4
|
+
<DocumentFragment>
|
|
5
5
|
<nav
|
|
6
6
|
aria-label="Jump to section"
|
|
7
7
|
class="pf-c-jump-links pf-m-vertical pf-m-expandable"
|
|
@@ -45,9 +45,7 @@ exports[`expandable vertical with subsection 1`] = `
|
|
|
45
45
|
<span
|
|
46
46
|
class="pf-c-jump-links__toggle-text"
|
|
47
47
|
>
|
|
48
|
-
|
|
49
|
-
Jump to section
|
|
50
|
-
|
|
48
|
+
Jump to section
|
|
51
49
|
</span>
|
|
52
50
|
</button>
|
|
53
51
|
</div>
|
|
@@ -159,11 +157,11 @@ exports[`expandable vertical with subsection 1`] = `
|
|
|
159
157
|
</ul>
|
|
160
158
|
</div>
|
|
161
159
|
</nav>
|
|
162
|
-
</
|
|
160
|
+
</DocumentFragment>
|
|
163
161
|
`;
|
|
164
162
|
|
|
165
163
|
exports[`jumplinks centered 1`] = `
|
|
166
|
-
<
|
|
164
|
+
<DocumentFragment>
|
|
167
165
|
<nav
|
|
168
166
|
class="pf-c-jump-links pf-m-center"
|
|
169
167
|
>
|
|
@@ -219,11 +217,11 @@ exports[`jumplinks centered 1`] = `
|
|
|
219
217
|
</ul>
|
|
220
218
|
</div>
|
|
221
219
|
</nav>
|
|
222
|
-
</
|
|
220
|
+
</DocumentFragment>
|
|
223
221
|
`;
|
|
224
222
|
|
|
225
223
|
exports[`jumplinks with label 1`] = `
|
|
226
|
-
<
|
|
224
|
+
<DocumentFragment>
|
|
227
225
|
<nav
|
|
228
226
|
aria-label="Jump to section"
|
|
229
227
|
class="pf-c-jump-links pf-m-center"
|
|
@@ -286,11 +284,11 @@ exports[`jumplinks with label 1`] = `
|
|
|
286
284
|
</ul>
|
|
287
285
|
</div>
|
|
288
286
|
</nav>
|
|
289
|
-
</
|
|
287
|
+
</DocumentFragment>
|
|
290
288
|
`;
|
|
291
289
|
|
|
292
290
|
exports[`simple jumplinks 1`] = `
|
|
293
|
-
<
|
|
291
|
+
<DocumentFragment>
|
|
294
292
|
<nav
|
|
295
293
|
class="pf-c-jump-links"
|
|
296
294
|
>
|
|
@@ -346,11 +344,11 @@ exports[`simple jumplinks 1`] = `
|
|
|
346
344
|
</ul>
|
|
347
345
|
</div>
|
|
348
346
|
</nav>
|
|
349
|
-
</
|
|
347
|
+
</DocumentFragment>
|
|
350
348
|
`;
|
|
351
349
|
|
|
352
350
|
exports[`vertical with label 1`] = `
|
|
353
|
-
<
|
|
351
|
+
<DocumentFragment>
|
|
354
352
|
<nav
|
|
355
353
|
aria-label="Jump to section"
|
|
356
354
|
class="pf-c-jump-links pf-m-vertical"
|
|
@@ -413,5 +411,5 @@ exports[`vertical with label 1`] = `
|
|
|
413
411
|
</ul>
|
|
414
412
|
</div>
|
|
415
413
|
</nav>
|
|
416
|
-
</
|
|
414
|
+
</DocumentFragment>
|
|
417
415
|
`;
|
|
@@ -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 { Label } from '../Label';
|
|
8
7
|
|
|
@@ -10,123 +9,91 @@ const labelColors = ['blue', 'cyan', 'green', 'orange', 'purple', 'red', 'grey']
|
|
|
10
9
|
|
|
11
10
|
describe('Label', () => {
|
|
12
11
|
test('renders', () => {
|
|
13
|
-
render(<Label
|
|
14
|
-
expect(
|
|
12
|
+
const { asFragment } = render(<Label>Something</Label>);
|
|
13
|
+
expect(asFragment()).toMatchSnapshot();
|
|
15
14
|
});
|
|
16
15
|
|
|
17
16
|
test('renders with outline variant', () => {
|
|
18
|
-
render(
|
|
19
|
-
|
|
20
|
-
Something
|
|
21
|
-
</Label>
|
|
22
|
-
);
|
|
23
|
-
expect(screen.getByTestId('label-test-id').outerHTML).toMatchSnapshot();
|
|
17
|
+
const { asFragment } = render(<Label variant="outline">Something</Label>);
|
|
18
|
+
expect(asFragment()).toMatchSnapshot();
|
|
24
19
|
});
|
|
25
20
|
|
|
26
21
|
test('renders with isCompact', () => {
|
|
27
|
-
render(
|
|
28
|
-
|
|
29
|
-
Something
|
|
30
|
-
</Label>
|
|
31
|
-
);
|
|
32
|
-
expect(screen.getByTestId('label-test-id').outerHTML).toMatchSnapshot();
|
|
22
|
+
const { asFragment } = render(<Label isCompact>Something</Label>);
|
|
23
|
+
expect(asFragment()).toMatchSnapshot();
|
|
33
24
|
});
|
|
34
25
|
|
|
35
26
|
test('label with href', () => {
|
|
36
|
-
render(
|
|
37
|
-
|
|
38
|
-
Something
|
|
39
|
-
</Label>
|
|
40
|
-
);
|
|
41
|
-
expect(screen.getByTestId('label-test-id').outerHTML).toMatchSnapshot();
|
|
27
|
+
const { asFragment } = render(<Label href="#">Something</Label>);
|
|
28
|
+
expect(asFragment()).toMatchSnapshot();
|
|
42
29
|
});
|
|
43
30
|
|
|
44
31
|
test('label with href with outline variant', () => {
|
|
45
|
-
render(
|
|
46
|
-
<Label href="#" variant="outline"
|
|
32
|
+
const { asFragment } = render(
|
|
33
|
+
<Label href="#" variant="outline">
|
|
47
34
|
Something
|
|
48
35
|
</Label>
|
|
49
36
|
);
|
|
50
|
-
expect(
|
|
37
|
+
expect(asFragment()).toMatchSnapshot();
|
|
51
38
|
});
|
|
52
39
|
|
|
53
40
|
test('label with close button', () => {
|
|
54
|
-
render(
|
|
55
|
-
<Label onClose={jest.fn()} data-testid="label-test-id">
|
|
56
|
-
Something
|
|
57
|
-
</Label>
|
|
58
|
-
);
|
|
41
|
+
const { asFragment } = render(<Label onClose={jest.fn()}>Something</Label>);
|
|
59
42
|
|
|
60
|
-
expect(
|
|
43
|
+
expect(asFragment()).toMatchSnapshot();
|
|
61
44
|
});
|
|
62
45
|
|
|
63
46
|
test('label with close button and outline variant', () => {
|
|
64
|
-
render(
|
|
65
|
-
<Label onClose={jest.fn()} variant="outline"
|
|
47
|
+
const { asFragment } = render(
|
|
48
|
+
<Label onClose={jest.fn()} variant="outline">
|
|
66
49
|
Something
|
|
67
50
|
</Label>
|
|
68
51
|
);
|
|
69
|
-
expect(
|
|
52
|
+
expect(asFragment()).toMatchSnapshot();
|
|
70
53
|
});
|
|
71
54
|
|
|
72
55
|
labelColors.forEach((color: string) =>
|
|
73
56
|
test(`label with ${color} color`, () => {
|
|
74
|
-
render(
|
|
75
|
-
|
|
76
|
-
Something
|
|
77
|
-
</Label>
|
|
78
|
-
);
|
|
79
|
-
expect(screen.getByTestId('label-test-id').outerHTML).toMatchSnapshot();
|
|
57
|
+
const { asFragment } = render(<Label color={color as any}>Something</Label>);
|
|
58
|
+
expect(asFragment()).toMatchSnapshot();
|
|
80
59
|
})
|
|
81
60
|
);
|
|
82
61
|
|
|
83
62
|
labelColors.forEach((color: string) =>
|
|
84
63
|
test(`label with ${color} color with outline variant`, () => {
|
|
85
|
-
render(
|
|
86
|
-
<Label color={color as any} variant="outline"
|
|
64
|
+
const { asFragment } = render(
|
|
65
|
+
<Label color={color as any} variant="outline">
|
|
87
66
|
Something
|
|
88
67
|
</Label>
|
|
89
68
|
);
|
|
90
|
-
expect(
|
|
69
|
+
expect(asFragment()).toMatchSnapshot();
|
|
91
70
|
})
|
|
92
71
|
);
|
|
93
72
|
|
|
94
73
|
test('label with additional class name', () => {
|
|
95
|
-
render(
|
|
96
|
-
|
|
97
|
-
Something
|
|
98
|
-
</Label>
|
|
99
|
-
);
|
|
100
|
-
expect(screen.getByTestId('label-test-id').outerHTML).toMatchSnapshot();
|
|
74
|
+
const { asFragment } = render(<Label className="klass1">Something</Label>);
|
|
75
|
+
expect(asFragment()).toMatchSnapshot();
|
|
101
76
|
});
|
|
102
77
|
|
|
103
78
|
test('label with additional class name and props', () => {
|
|
104
|
-
render(
|
|
105
|
-
<Label className="class-1" id="label-1" data-label-name="something"
|
|
79
|
+
const { asFragment } = render(
|
|
80
|
+
<Label className="class-1" id="label-1" data-label-name="something">
|
|
106
81
|
Something
|
|
107
82
|
</Label>
|
|
108
83
|
);
|
|
109
|
-
expect(
|
|
84
|
+
expect(asFragment()).toMatchSnapshot();
|
|
110
85
|
});
|
|
111
86
|
|
|
112
87
|
test('label with truncation', () => {
|
|
113
|
-
render(
|
|
114
|
-
<Label isTruncated
|
|
115
|
-
Something very very very very very long that should be truncated
|
|
116
|
-
</Label>
|
|
88
|
+
const { asFragment } = render(
|
|
89
|
+
<Label isTruncated>Something very very very very very long that should be truncated</Label>
|
|
117
90
|
);
|
|
118
|
-
expect(
|
|
91
|
+
expect(asFragment()).toMatchSnapshot();
|
|
119
92
|
});
|
|
120
93
|
|
|
121
94
|
test('editable label', () => {
|
|
122
|
-
render(
|
|
123
|
-
<Label
|
|
124
|
-
onClose={jest.fn()}
|
|
125
|
-
onEditCancel={jest.fn()}
|
|
126
|
-
onEditComplete={jest.fn()}
|
|
127
|
-
isEditable
|
|
128
|
-
data-testid="label-test-id"
|
|
129
|
-
>
|
|
95
|
+
const { asFragment } = render(
|
|
96
|
+
<Label onClose={jest.fn()} onEditCancel={jest.fn()} onEditComplete={jest.fn()} isEditable>
|
|
130
97
|
Something
|
|
131
98
|
</Label>
|
|
132
99
|
);
|
|
@@ -134,10 +101,10 @@ describe('Label', () => {
|
|
|
134
101
|
const button = screen.getByRole('button', { name: 'Something' });
|
|
135
102
|
|
|
136
103
|
expect(button).toBeInTheDocument();
|
|
137
|
-
expect(
|
|
104
|
+
expect(asFragment()).toMatchSnapshot();
|
|
138
105
|
|
|
139
106
|
userEvent.click(button);
|
|
140
107
|
expect(screen.queryByRole('button', { name: 'Something' })).toBeNull();
|
|
141
|
-
expect(
|
|
108
|
+
expect(asFragment()).toMatchSnapshot();
|
|
142
109
|
});
|
|
143
110
|
});
|