@patternfly/react-core 4.202.30 → 4.202.33
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 +24 -0
- package/dist/esm/components/Wizard/Wizard.d.ts +2 -0
- package/dist/esm/components/Wizard/Wizard.d.ts.map +1 -1
- package/dist/esm/components/Wizard/Wizard.js +3 -2
- package/dist/esm/components/Wizard/Wizard.js.map +1 -1
- package/dist/esm/components/Wizard/WizardHeader.d.ts +2 -0
- package/dist/esm/components/Wizard/WizardHeader.d.ts.map +1 -1
- package/dist/esm/components/Wizard/WizardHeader.js +2 -2
- package/dist/esm/components/Wizard/WizardHeader.js.map +1 -1
- package/dist/js/components/Wizard/Wizard.d.ts +2 -0
- package/dist/js/components/Wizard/Wizard.d.ts.map +1 -1
- package/dist/js/components/Wizard/Wizard.js +3 -2
- package/dist/js/components/Wizard/Wizard.js.map +1 -1
- package/dist/js/components/Wizard/WizardHeader.d.ts +2 -0
- package/dist/js/components/Wizard/WizardHeader.d.ts.map +1 -1
- package/dist/js/components/Wizard/WizardHeader.js +2 -2
- package/dist/js/components/Wizard/WizardHeader.js.map +1 -1
- package/dist/umd/react-core.js +5 -4
- package/dist/umd/react-core.min.js +1 -1
- package/package.json +5 -5
- package/src/components/Dropdown/__tests__/DropdownToggleCheckbox.test.tsx +1 -1
- package/src/components/Page/__tests__/Page.test.tsx +225 -205
- package/src/components/Page/__tests__/__snapshots__/Page.test.tsx.snap +1088 -2059
- package/src/components/Pagination/__tests__/Pagination.test.tsx +235 -283
- package/src/components/Pagination/__tests__/__snapshots__/Pagination.test.tsx.snap +143 -577
- package/src/components/Radio/__tests__/Radio.test.tsx +38 -44
- package/src/components/Radio/__tests__/__snapshots__/Radio.test.tsx.snap +30 -30
- package/src/components/SearchInput/__tests__/SearchInput.test.tsx +87 -68
- package/src/components/SearchInput/__tests__/__snapshots__/SearchInput.test.tsx.snap +230 -137
- package/src/components/Select/__tests__/Select.test.tsx +238 -195
- package/src/components/Select/__tests__/SelectToggle.test.tsx +68 -130
- package/src/components/Select/__tests__/__snapshots__/Select.test.tsx.snap +978 -2149
- package/src/components/Select/__tests__/__snapshots__/SelectToggle.test.tsx.snap +3 -3
- package/src/components/SimpleList/__tests__/SimpleList.test.tsx +29 -32
- package/src/components/SimpleList/__tests__/__snapshots__/SimpleList.test.tsx.snap +4 -366
- package/src/components/Switch/__tests__/Switch.test.tsx +85 -75
- package/src/components/Switch/__tests__/__snapshots__/Switch.test.tsx.snap +30 -40
- package/src/components/TextArea/__tests__/TextArea.test.tsx +98 -103
- package/src/components/TextArea/__tests__/__snapshots__/TextArea.test.tsx.snap +24 -103
- package/src/components/TextInput/__tests__/TextInput.test.tsx +71 -70
- package/src/components/TextInput/__tests__/__snapshots__/TextInput.test.tsx.snap +15 -103
- package/src/components/TextInputGroup/__tests__/TextInputGroup.test.tsx +65 -39
- package/src/components/TextInputGroup/__tests__/__snapshots__/TextInputGroup.test.tsx.snap +53 -14
- package/src/components/TimePicker/__tests__/TimePicker.test.tsx +113 -110
- package/src/components/Title/__tests__/Title.test.tsx +21 -20
- package/src/components/Title/__tests__/__snapshots__/Title.test.tsx.snap +24 -30
- package/src/components/ToggleGroup/__tests__/ToggleGroup.test.tsx +43 -39
- package/src/components/ToggleGroup/__tests__/__snapshots__/ToggleGroup.test.tsx.snap +20 -19
- package/src/components/Wizard/Wizard.tsx +5 -0
- package/src/components/Wizard/WizardHeader.tsx +5 -2
- package/src/components/Wizard/__tests__/Wizard.test.tsx +195 -189
- package/src/components/Wizard/__tests__/__snapshots__/Wizard.test.tsx.snap +131 -10
- package/src/components/Wizard/examples/Wizard.md +168 -103
- package/src/helpers/__tests__/util.test.ts +113 -0
- package/src/layouts/Bullseye/__tests__/Bullseye.test.tsx +25 -25
- package/src/layouts/Bullseye/__tests__/__snapshots__/Bullseye.test.tsx.snap +3 -5
- package/src/layouts/Flex/__tests__/Flex.test.tsx +159 -96
- package/src/layouts/Flex/__tests__/__snapshots__/Flex.test.tsx.snap +9 -17
- package/src/components/AboutModal/__tests__/Generated/AboutModal.test.tsx +0 -27
- package/src/components/AboutModal/__tests__/Generated/AboutModalBox.test.tsx +0 -13
- package/src/components/AboutModal/__tests__/Generated/AboutModalBoxBrand.test.tsx +0 -13
- package/src/components/AboutModal/__tests__/Generated/AboutModalBoxCloseButton.test.tsx +0 -13
- package/src/components/AboutModal/__tests__/Generated/AboutModalBoxContent.test.tsx +0 -21
- package/src/components/AboutModal/__tests__/Generated/AboutModalBoxHeader.test.tsx +0 -13
- package/src/components/AboutModal/__tests__/Generated/AboutModalBoxHero.test.tsx +0 -13
- package/src/components/AboutModal/__tests__/Generated/AboutModalContainer.test.tsx +0 -27
- package/src/components/AboutModal/__tests__/Generated/__snapshots__/AboutModal.test.tsx.snap +0 -3
- package/src/components/AboutModal/__tests__/Generated/__snapshots__/AboutModalBox.test.tsx.snap +0 -15
- package/src/components/AboutModal/__tests__/Generated/__snapshots__/AboutModalBoxBrand.test.tsx.snap +0 -15
- package/src/components/AboutModal/__tests__/Generated/__snapshots__/AboutModalBoxCloseButton.test.tsx.snap +0 -33
- package/src/components/AboutModal/__tests__/Generated/__snapshots__/AboutModalBoxContent.test.tsx.snap +0 -27
- package/src/components/AboutModal/__tests__/Generated/__snapshots__/AboutModalBoxHeader.test.tsx.snap +0 -19
- package/src/components/AboutModal/__tests__/Generated/__snapshots__/AboutModalBoxHero.test.tsx.snap +0 -10
- package/src/components/AboutModal/__tests__/Generated/__snapshots__/AboutModalContainer.test.tsx.snap +0 -3
- package/src/components/Accordion/__tests__/Generated/Accordion.test.tsx +0 -22
- package/src/components/Accordion/__tests__/Generated/__snapshots__/Accordion.test.tsx.snap +0 -12
- package/src/components/Alert/__tests__/Generated/Alert.test.tsx +0 -26
- package/src/components/Alert/__tests__/Generated/__snapshots__/Alert.test.tsx.snap +0 -47
- package/src/components/ApplicationLauncher/__tests__/Generated/ApplicationLauncher.test.tsx +0 -36
- package/src/components/ApplicationLauncher/__tests__/Generated/__snapshots__/ApplicationLauncher.test.tsx.snap +0 -30
- package/src/components/Avatar/__tests__/Generated/Avatar.test.tsx +0 -13
- package/src/components/Avatar/__tests__/Generated/__snapshots__/Avatar.test.tsx.snap +0 -11
- package/src/components/Backdrop/__tests__/Generated/Backdrop.test.tsx +0 -13
- package/src/components/Backdrop/__tests__/Generated/__snapshots__/Backdrop.test.tsx.snap +0 -11
- package/src/components/BackgroundImage/__tests__/Generated/BackgroundImage.test.tsx +0 -13
- package/src/components/BackgroundImage/__tests__/Generated/__snapshots__/BackgroundImage.test.tsx.snap +0 -47
- package/src/components/Badge/__tests__/Generated/Badge.test.tsx +0 -13
- package/src/components/Badge/__tests__/Generated/__snapshots__/Badge.test.tsx.snap +0 -9
- package/src/components/Brand/__tests__/Generated/Brand.test.tsx +0 -13
- package/src/components/Brand/__tests__/Generated/__snapshots__/Brand.test.tsx.snap +0 -11
- package/src/components/Breadcrumb/__tests__/Generated/Breadcrumb.test.tsx +0 -13
- package/src/components/Breadcrumb/__tests__/Generated/BreadcrumbHeading.test.tsx +0 -15
- package/src/components/Breadcrumb/__tests__/Generated/BreadcrumbItem.test.tsx +0 -22
- package/src/components/Breadcrumb/__tests__/Generated/__snapshots__/Breadcrumb.test.tsx.snap +0 -19
- package/src/components/Breadcrumb/__tests__/Generated/__snapshots__/BreadcrumbHeading.test.tsx.snap +0 -22
- package/src/components/Breadcrumb/__tests__/Generated/__snapshots__/BreadcrumbItem.test.tsx.snap +0 -17
- package/src/components/Button/__tests__/Generated/Button.test.tsx +0 -31
- package/src/components/Button/__tests__/Generated/__snapshots__/Button.test.tsx.snap +0 -17
- package/src/components/Card/__tests__/Generated/Card.test.tsx +0 -15
- package/src/components/Card/__tests__/Generated/CardBody.test.tsx +0 -13
- package/src/components/Card/__tests__/Generated/CardFooter.test.tsx +0 -13
- package/src/components/Card/__tests__/Generated/CardHead.test.tsx +0 -13
- package/src/components/Card/__tests__/Generated/CardHeader.test.tsx +0 -13
- package/src/components/Card/__tests__/Generated/__snapshots__/Card.test.tsx.snap +0 -15
- package/src/components/Card/__tests__/Generated/__snapshots__/CardBody.test.tsx.snap +0 -11
- package/src/components/Card/__tests__/Generated/__snapshots__/CardFooter.test.tsx.snap +0 -11
- package/src/components/Card/__tests__/Generated/__snapshots__/CardHead.test.tsx.snap +0 -11
- package/src/components/Card/__tests__/Generated/__snapshots__/CardHeader.test.tsx.snap +0 -11
- package/src/components/Checkbox/__tests__/Generated/Checkbox.test.tsx +0 -26
- package/src/components/Checkbox/__tests__/Generated/__snapshots__/Checkbox.test.tsx.snap +0 -35
- package/src/components/Chip/__tests__/Generated/Chip.test.tsx +0 -24
- package/src/components/Chip/__tests__/Generated/__snapshots__/Chip.test.tsx.snap +0 -46
- package/src/components/ChipGroup/__tests__/Generated/ChipGroup.test.tsx +0 -24
- package/src/components/ChipGroup/__tests__/Generated/__snapshots__/ChipGroup.test.tsx.snap +0 -33
- package/src/components/ClipboardCopy/__tests__/Generated/ClipboardCopyButton.test.tsx +0 -26
- package/src/components/ClipboardCopy/__tests__/Generated/ClipboardCopyExpanded.test.tsx +0 -21
- package/src/components/ClipboardCopy/__tests__/Generated/ClipboardCopyToggle.test.tsx +0 -22
- package/src/components/ClipboardCopy/__tests__/Generated/__snapshots__/ClipboardCopyButton.test.tsx.snap +0 -31
- package/src/components/ClipboardCopy/__tests__/Generated/__snapshots__/ClipboardCopyExpanded.test.tsx.snap +0 -14
- package/src/components/ClipboardCopy/__tests__/Generated/__snapshots__/ClipboardCopyToggle.test.tsx.snap +0 -32
- package/src/components/ContextSelector/__tests__/Generated/ContextSelector.test.tsx +0 -28
- package/src/components/ContextSelector/__tests__/Generated/ContextSelectorItem.test.tsx +0 -23
- package/src/components/ContextSelector/__tests__/Generated/ContextSelectorMenuList.test.tsx +0 -13
- package/src/components/ContextSelector/__tests__/Generated/ContextSelectorToggle.test.tsx +0 -26
- package/src/components/ContextSelector/__tests__/Generated/__snapshots__/ContextSelector.test.tsx.snap +0 -49
- package/src/components/ContextSelector/__tests__/Generated/__snapshots__/ContextSelectorItem.test.tsx.snap +0 -15
- package/src/components/ContextSelector/__tests__/Generated/__snapshots__/ContextSelectorMenuList.test.tsx.snap +0 -12
- package/src/components/ContextSelector/__tests__/Generated/__snapshots__/ContextSelectorToggle.test.tsx.snap +0 -35
- package/src/components/DataList/__tests__/Generated/DataList.test.tsx +0 -21
- package/src/components/DataList/__tests__/Generated/__snapshots__/DataList.test.tsx.snap +0 -12
- package/src/components/Divider/__tests__/Generated/Divider.test.tsx +0 -13
- package/src/components/Divider/__tests__/Generated/__snapshots__/Divider.test.tsx.snap +0 -9
- package/src/components/Drawer/__tests__/Generated/Drawer.test.tsx +0 -13
- package/src/components/Drawer/__tests__/Generated/__snapshots__/Drawer.test.tsx.snap +0 -13
- package/src/components/Dropdown/__tests__/Generated/Dropdown.test.tsx +0 -27
- package/src/components/Dropdown/__tests__/Generated/DropdownGroup.test.tsx +0 -13
- package/src/components/Dropdown/__tests__/Generated/DropdownToggle.test.tsx +0 -34
- package/src/components/Dropdown/__tests__/Generated/DropdownToggleAction.test.tsx +0 -22
- package/src/components/Dropdown/__tests__/Generated/DropdownToggleCheckbox.test.tsx +0 -25
- package/src/components/Dropdown/__tests__/Generated/Toggle.test.tsx +0 -31
- package/src/components/Dropdown/__tests__/Generated/__snapshots__/Dropdown.test.tsx.snap +0 -27
- package/src/components/Dropdown/__tests__/Generated/__snapshots__/DropdownGroup.test.tsx.snap +0 -16
- package/src/components/Dropdown/__tests__/Generated/__snapshots__/DropdownToggle.test.tsx.snap +0 -34
- package/src/components/Dropdown/__tests__/Generated/__snapshots__/DropdownToggleAction.test.tsx.snap +0 -15
- package/src/components/Dropdown/__tests__/Generated/__snapshots__/DropdownToggleCheckbox.test.tsx.snap +0 -30
- package/src/components/Dropdown/__tests__/Generated/__snapshots__/Toggle.test.tsx.snap +0 -17
- package/src/components/EmptyState/__tests__/Generated/EmptyState.test.tsx +0 -13
- package/src/components/EmptyState/__tests__/Generated/__snapshots__/EmptyState.test.tsx.snap +0 -17
- package/src/components/ExpandableSection/__tests__/Generated/ExpandableSection.test.tsx +0 -24
- package/src/components/ExpandableSection/__tests__/Generated/__snapshots__/ExpandableSection.test.tsx.snap +0 -46
- package/src/components/Form/__tests__/Generated/ActionGroup.test.tsx +0 -13
- package/src/components/Form/__tests__/Generated/Form.test.tsx +0 -13
- package/src/components/Form/__tests__/Generated/FormGroup.test.tsx +0 -27
- package/src/components/Form/__tests__/Generated/FormHelperText.test.tsx +0 -13
- package/src/components/Form/__tests__/Generated/__snapshots__/ActionGroup.test.tsx.snap +0 -19
- package/src/components/Form/__tests__/Generated/__snapshots__/Form.test.tsx.snap +0 -12
- package/src/components/Form/__tests__/Generated/__snapshots__/FormGroup.test.tsx.snap +0 -38
- package/src/components/Form/__tests__/Generated/__snapshots__/FormHelperText.test.tsx.snap +0 -11
- package/src/components/FormSelect/__tests__/Generated/FormSelect.test.tsx +0 -26
- package/src/components/FormSelect/__tests__/Generated/__snapshots__/FormSelect.test.tsx.snap +0 -18
- package/src/components/InputGroup/__tests__/Generated/InputGroup.test.tsx +0 -13
- package/src/components/InputGroup/__tests__/Generated/InputGroupText.test.tsx +0 -13
- package/src/components/InputGroup/__tests__/Generated/__snapshots__/InputGroup.test.tsx.snap +0 -13
- package/src/components/InputGroup/__tests__/Generated/__snapshots__/InputGroupText.test.tsx.snap +0 -13
- package/src/components/Label/__tests__/Generated/Label.test.tsx +0 -13
- package/src/components/Label/__tests__/Generated/__snapshots__/Label.test.tsx.snap +0 -17
- package/src/components/LabelGroup/__tests__/Generated/LabelGroup.test.tsx +0 -29
- package/src/components/LabelGroup/__tests__/Generated/__snapshots__/LabelGroup.test.tsx.snap +0 -34
- package/src/components/LoginPage/__tests__/Generated/Login.test.tsx +0 -13
- package/src/components/LoginPage/__tests__/Generated/LoginFooterItem.test.tsx +0 -13
- package/src/components/LoginPage/__tests__/Generated/LoginForm.test.tsx +0 -34
- package/src/components/LoginPage/__tests__/Generated/LoginMainBody.test.tsx +0 -13
- package/src/components/LoginPage/__tests__/Generated/LoginMainFooter.test.tsx +0 -21
- package/src/components/LoginPage/__tests__/Generated/LoginMainFooterBandItem.test.tsx +0 -13
- package/src/components/LoginPage/__tests__/Generated/LoginMainFooterLinksItem.test.tsx +0 -22
- package/src/components/LoginPage/__tests__/Generated/LoginMainHeader.test.tsx +0 -13
- package/src/components/LoginPage/__tests__/Generated/LoginPage.test.tsx +0 -30
- package/src/components/LoginPage/__tests__/Generated/__snapshots__/Login.test.tsx.snap +0 -19
- package/src/components/LoginPage/__tests__/Generated/__snapshots__/LoginFooterItem.test.tsx.snap +0 -7
- package/src/components/LoginPage/__tests__/Generated/__snapshots__/LoginForm.test.tsx.snap +0 -150
- package/src/components/LoginPage/__tests__/Generated/__snapshots__/LoginMainBody.test.tsx.snap +0 -11
- package/src/components/LoginPage/__tests__/Generated/__snapshots__/LoginMainFooter.test.tsx.snap +0 -11
- package/src/components/LoginPage/__tests__/Generated/__snapshots__/LoginMainFooterBandItem.test.tsx.snap +0 -11
- package/src/components/LoginPage/__tests__/Generated/__snapshots__/LoginMainFooterLinksItem.test.tsx.snap +0 -17
- package/src/components/LoginPage/__tests__/Generated/__snapshots__/LoginMainHeader.test.tsx.snap +0 -24
- package/src/components/LoginPage/__tests__/Generated/__snapshots__/LoginPage.test.tsx.snap +0 -60
- package/src/components/Modal/__tests__/Generated/Modal.test.tsx +0 -35
- package/src/components/Modal/__tests__/Generated/ModalBox.test.tsx +0 -22
- package/src/components/Modal/__tests__/Generated/ModalBoxBody.test.tsx +0 -13
- package/src/components/Modal/__tests__/Generated/ModalBoxCloseButton.test.tsx +0 -13
- package/src/components/Modal/__tests__/Generated/ModalBoxDescription.test.tsx +0 -13
- package/src/components/Modal/__tests__/Generated/ModalBoxFooter.test.tsx +0 -13
- package/src/components/Modal/__tests__/Generated/ModalBoxHeader.test.tsx +0 -13
- package/src/components/Modal/__tests__/Generated/ModalContent.test.tsx +0 -36
- package/src/components/Modal/__tests__/Generated/__snapshots__/Modal.test.tsx.snap +0 -3
- package/src/components/Modal/__tests__/Generated/__snapshots__/ModalBox.test.tsx.snap +0 -18
- package/src/components/Modal/__tests__/Generated/__snapshots__/ModalBoxBody.test.tsx.snap +0 -11
- package/src/components/Modal/__tests__/Generated/__snapshots__/ModalBoxCloseButton.test.tsx.snap +0 -29
- package/src/components/Modal/__tests__/Generated/__snapshots__/ModalBoxDescription.test.tsx.snap +0 -12
- package/src/components/Modal/__tests__/Generated/__snapshots__/ModalBoxFooter.test.tsx.snap +0 -11
- package/src/components/Modal/__tests__/Generated/__snapshots__/ModalBoxHeader.test.tsx.snap +0 -11
- package/src/components/Modal/__tests__/Generated/__snapshots__/ModalContent.test.tsx.snap +0 -3
- package/src/components/Nav/__tests__/Generated/Nav.test.tsx +0 -22
- package/src/components/Nav/__tests__/Generated/__snapshots__/Nav.test.tsx.snap +0 -15
- package/src/components/NotificationBadge/__tests__/Generated/NotificationBadge.test.tsx +0 -15
- package/src/components/NotificationBadge/__tests__/Generated/__snapshots__/NotificationBadge.test.tsx.snap +0 -23
- package/src/components/NotificationDrawer/__tests__/Generated/NotificationDrawer.test.tsx +0 -13
- package/src/components/NotificationDrawer/__tests__/Generated/NotificationDrawerBody.test.tsx +0 -13
- package/src/components/NotificationDrawer/__tests__/Generated/NotificationDrawerGroup.test.tsx +0 -23
- package/src/components/NotificationDrawer/__tests__/Generated/NotificationDrawerGroupList.test.tsx +0 -13
- package/src/components/NotificationDrawer/__tests__/Generated/NotificationDrawerHeader.test.tsx +0 -15
- package/src/components/NotificationDrawer/__tests__/Generated/NotificationDrawerList.test.tsx +0 -13
- package/src/components/NotificationDrawer/__tests__/Generated/NotificationDrawerListItem.test.tsx +0 -22
- package/src/components/NotificationDrawer/__tests__/Generated/NotificationDrawerListItemBody.test.tsx +0 -15
- package/src/components/NotificationDrawer/__tests__/Generated/NotificationDrawerListItemHeader.test.tsx +0 -22
- package/src/components/NotificationDrawer/__tests__/Generated/__snapshots__/NotificationDrawer.test.tsx.snap +0 -13
- package/src/components/NotificationDrawer/__tests__/Generated/__snapshots__/NotificationDrawerBody.test.tsx.snap +0 -13
- package/src/components/NotificationDrawer/__tests__/Generated/__snapshots__/NotificationDrawerGroup.test.tsx.snap +0 -51
- package/src/components/NotificationDrawer/__tests__/Generated/__snapshots__/NotificationDrawerGroupList.test.tsx.snap +0 -13
- package/src/components/NotificationDrawer/__tests__/Generated/__snapshots__/NotificationDrawerHeader.test.tsx.snap +0 -31
- package/src/components/NotificationDrawer/__tests__/Generated/__snapshots__/NotificationDrawerList.test.tsx.snap +0 -13
- package/src/components/NotificationDrawer/__tests__/Generated/__snapshots__/NotificationDrawerListItem.test.tsx.snap +0 -14
- package/src/components/NotificationDrawer/__tests__/Generated/__snapshots__/NotificationDrawerListItemBody.test.tsx.snap +0 -20
- package/src/components/NotificationDrawer/__tests__/Generated/__snapshots__/NotificationDrawerListItemHeader.test.tsx.snap +0 -44
- package/src/components/OptionsMenu/__tests__/Generated/OptionsMenu.test.tsx +0 -26
- package/src/components/OptionsMenu/__tests__/Generated/__snapshots__/OptionsMenu.test.tsx.snap +0 -24
- package/src/components/OverflowMenu/__tests__/Generated/OverflowMenu.test.tsx +0 -13
- package/src/components/OverflowMenu/__tests__/Generated/OverflowMenuContent.test.tsx +0 -13
- package/src/components/OverflowMenu/__tests__/Generated/OverflowMenuGroup.test.tsx +0 -15
- package/src/components/OverflowMenu/__tests__/Generated/OverflowMenuItem.test.tsx +0 -13
- package/src/components/OverflowMenu/__tests__/Generated/__snapshots__/OverflowMenu.test.tsx.snap +0 -11
- package/src/components/OverflowMenu/__tests__/Generated/__snapshots__/OverflowMenuContent.test.tsx.snap +0 -11
- package/src/components/OverflowMenu/__tests__/Generated/__snapshots__/OverflowMenuGroup.test.tsx.snap +0 -11
- package/src/components/OverflowMenu/__tests__/Generated/__snapshots__/OverflowMenuItem.test.tsx.snap +0 -13
- package/src/components/Page/__tests__/Generated/Page.test.tsx +0 -28
- package/src/components/Page/__tests__/Generated/PageHeader.test.tsx +0 -28
- package/src/components/Page/__tests__/Generated/PageSection.test.tsx +0 -22
- package/src/components/Page/__tests__/Generated/__snapshots__/Page.test.tsx.snap +0 -19
- package/src/components/Page/__tests__/Generated/__snapshots__/PageHeader.test.tsx.snap +0 -10
- package/src/components/Page/__tests__/Generated/__snapshots__/PageSection.test.tsx.snap +0 -13
- package/src/components/Pagination/__tests__/Generated/Pagination.test.tsx +0 -58
- package/src/components/Pagination/__tests__/Generated/__snapshots__/Pagination.test.tsx.snap +0 -205
- package/src/components/Popover/__tests__/Generated/Popover.test.tsx +0 -40
- package/src/components/Popover/__tests__/Generated/__snapshots__/Popover.test.tsx.snap +0 -9
- package/src/components/Progress/__tests__/Generated/Progress.test.tsx +0 -27
- package/src/components/Progress/__tests__/Generated/__snapshots__/Progress.test.tsx.snap +0 -63
- package/src/components/Radio/__tests__/Generated/Radio.test.tsx +0 -29
- package/src/components/Radio/__tests__/Generated/__snapshots__/Radio.test.tsx.snap +0 -36
- package/src/components/Select/__tests__/Generated/Select.test.tsx +0 -49
- package/src/components/Select/__tests__/Generated/SelectToggle.test.tsx +0 -34
- package/src/components/Select/__tests__/Generated/__snapshots__/Select.test.tsx.snap +0 -48
- package/src/components/Select/__tests__/Generated/__snapshots__/SelectToggle.test.tsx.snap +0 -36
- package/src/components/SimpleList/__tests__/Generated/SimpleList.test.tsx +0 -22
- package/src/components/SimpleList/__tests__/Generated/__snapshots__/SimpleList.test.tsx.snap +0 -13
- package/src/components/SkipToContent/__tests__/Generated/SkipToContent.test.tsx +0 -15
- package/src/components/SkipToContent/__tests__/Generated/__snapshots__/SkipToContent.test.tsx.snap +0 -15
- package/src/components/Spinner/__tests__/Generated/Spinner.test.tsx +0 -13
- package/src/components/Spinner/__tests__/Generated/__snapshots__/Spinner.test.tsx.snap +0 -22
- package/src/components/Switch/__tests__/Generated/Switch.test.tsx +0 -24
- package/src/components/Switch/__tests__/Generated/__snapshots__/Switch.test.tsx.snap +0 -36
- package/src/components/Tabs/__tests__/Generated/TabButton.test.tsx +0 -20
- package/src/components/Tabs/__tests__/Generated/Tabs.test.tsx +0 -29
- package/src/components/Tabs/__tests__/Generated/__snapshots__/TabButton.test.tsx.snap +0 -16
- package/src/components/Tabs/__tests__/Generated/__snapshots__/Tabs.test.tsx.snap +0 -75
- package/src/components/Text/__tests__/Generated/Text.test.tsx +0 -13
- package/src/components/Text/__tests__/Generated/__snapshots__/Text.test.tsx.snap +0 -15
- package/src/components/TextArea/__tests__/Generated/TextArea.test.tsx +0 -23
- package/src/components/TextArea/__tests__/Generated/__snapshots__/TextArea.test.tsx.snap +0 -13
- package/src/components/Title/__tests__/Generated/Title.test.tsx +0 -13
- package/src/components/Title/__tests__/Generated/__snapshots__/Title.test.tsx.snap +0 -12
- package/src/components/Toolbar/__tests__/Generated/Toolbar.test.tsx +0 -24
- package/src/components/Toolbar/__tests__/Generated/ToolbarItem.test.tsx +0 -20
- package/src/components/Toolbar/__tests__/Generated/__snapshots__/Toolbar.test.tsx.snap +0 -25
- package/src/components/Toolbar/__tests__/Generated/__snapshots__/ToolbarItem.test.tsx.snap +0 -14
- package/src/components/Tooltip/__tests__/Generated/Tooltip.test.tsx +0 -33
- package/src/components/Tooltip/__tests__/Generated/__snapshots__/Tooltip.test.tsx.snap +0 -9
- package/src/helpers/__tests__/util.test.js +0 -235
- package/src/layouts/Bullseye/__tests__/Generated/Bullseye.test.tsx +0 -13
- package/src/layouts/Bullseye/__tests__/Generated/__snapshots__/Bullseye.test.tsx.snap +0 -11
- package/src/layouts/Flex/__tests__/Generated/Flex.test.tsx +0 -13
- package/src/layouts/Flex/__tests__/Generated/__snapshots__/Flex.test.tsx.snap +0 -11
- package/src/layouts/Gallery/__tests__/Generated/Gallery.test.tsx +0 -13
- package/src/layouts/Gallery/__tests__/Generated/__snapshots__/Gallery.test.tsx.snap +0 -11
- package/src/layouts/Grid/__tests__/Generated/Grid.test.tsx +0 -15
- package/src/layouts/Grid/__tests__/Generated/GridItem.test.tsx +0 -36
- package/src/layouts/Grid/__tests__/Generated/__snapshots__/Grid.test.tsx.snap +0 -11
- package/src/layouts/Grid/__tests__/Generated/__snapshots__/GridItem.test.tsx.snap +0 -11
- package/src/layouts/Level/__tests__/Generated/Level.test.tsx +0 -13
- package/src/layouts/Level/__tests__/Generated/__snapshots__/Level.test.tsx.snap +0 -11
- package/src/layouts/Split/__tests__/Generated/Split.test.tsx +0 -13
- package/src/layouts/Split/__tests__/Generated/__snapshots__/Split.test.tsx.snap +0 -11
- package/src/layouts/Stack/__tests__/Generated/Stack.test.tsx +0 -13
- package/src/layouts/Stack/__tests__/Generated/__snapshots__/Stack.test.tsx.snap +0 -11
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`no label switch is checked 1`] = `
|
|
4
|
-
<
|
|
3
|
+
exports[`Switch no label switch is checked 1`] = `
|
|
4
|
+
<DocumentFragment>
|
|
5
5
|
<label
|
|
6
6
|
class="pf-c-switch"
|
|
7
7
|
data-ouia-component-id="OUIA-Generated-Switch-7"
|
|
@@ -10,8 +10,7 @@ exports[`no label switch is checked 1`] = `
|
|
|
10
10
|
for="no-label-switch-is-checked"
|
|
11
11
|
>
|
|
12
12
|
<input
|
|
13
|
-
aria-label=""
|
|
14
|
-
aria-labelledby="no-label-switch-is-checked-on"
|
|
13
|
+
aria-label="Switch label"
|
|
15
14
|
checked=""
|
|
16
15
|
class="pf-c-switch__input"
|
|
17
16
|
id="no-label-switch-is-checked"
|
|
@@ -39,11 +38,11 @@ exports[`no label switch is checked 1`] = `
|
|
|
39
38
|
</div>
|
|
40
39
|
</span>
|
|
41
40
|
</label>
|
|
42
|
-
</
|
|
41
|
+
</DocumentFragment>
|
|
43
42
|
`;
|
|
44
43
|
|
|
45
|
-
exports[`no label switch is not checked 1`] = `
|
|
46
|
-
<
|
|
44
|
+
exports[`Switch no label switch is not checked 1`] = `
|
|
45
|
+
<DocumentFragment>
|
|
47
46
|
<label
|
|
48
47
|
class="pf-c-switch"
|
|
49
48
|
data-ouia-component-id="OUIA-Generated-Switch-8"
|
|
@@ -52,8 +51,7 @@ exports[`no label switch is not checked 1`] = `
|
|
|
52
51
|
for="no-label-switch-is-not-checked"
|
|
53
52
|
>
|
|
54
53
|
<input
|
|
55
|
-
aria-label=""
|
|
56
|
-
aria-labelledby="no-label-switch-is-not-checked-on"
|
|
54
|
+
aria-label="Switch label"
|
|
57
55
|
class="pf-c-switch__input"
|
|
58
56
|
id="no-label-switch-is-not-checked"
|
|
59
57
|
type="checkbox"
|
|
@@ -80,11 +78,11 @@ exports[`no label switch is not checked 1`] = `
|
|
|
80
78
|
</div>
|
|
81
79
|
</span>
|
|
82
80
|
</label>
|
|
83
|
-
</
|
|
81
|
+
</DocumentFragment>
|
|
84
82
|
`;
|
|
85
83
|
|
|
86
|
-
exports[`switch is checked 1`] = `
|
|
87
|
-
<
|
|
84
|
+
exports[`Switch switch is checked 1`] = `
|
|
85
|
+
<DocumentFragment>
|
|
88
86
|
<label
|
|
89
87
|
class="pf-c-switch"
|
|
90
88
|
data-ouia-component-id="OUIA-Generated-Switch-3"
|
|
@@ -93,8 +91,7 @@ exports[`switch is checked 1`] = `
|
|
|
93
91
|
for="switch-is-checked"
|
|
94
92
|
>
|
|
95
93
|
<input
|
|
96
|
-
aria-label=""
|
|
97
|
-
aria-labelledby="switch-is-checked-on"
|
|
94
|
+
aria-label="Switch label"
|
|
98
95
|
checked=""
|
|
99
96
|
class="pf-c-switch__input"
|
|
100
97
|
id="switch-is-checked"
|
|
@@ -106,23 +103,21 @@ exports[`switch is checked 1`] = `
|
|
|
106
103
|
<span
|
|
107
104
|
aria-hidden="true"
|
|
108
105
|
class="pf-c-switch__label pf-m-on"
|
|
109
|
-
id="switch-is-checked-on"
|
|
110
106
|
>
|
|
111
107
|
On
|
|
112
108
|
</span>
|
|
113
109
|
<span
|
|
114
110
|
aria-hidden="true"
|
|
115
111
|
class="pf-c-switch__label pf-m-off"
|
|
116
|
-
id="switch-is-checked-off"
|
|
117
112
|
>
|
|
118
113
|
Off
|
|
119
114
|
</span>
|
|
120
115
|
</label>
|
|
121
|
-
</
|
|
116
|
+
</DocumentFragment>
|
|
122
117
|
`;
|
|
123
118
|
|
|
124
|
-
exports[`switch is checked and disabled 1`] = `
|
|
125
|
-
<
|
|
119
|
+
exports[`Switch switch is checked and disabled 1`] = `
|
|
120
|
+
<DocumentFragment>
|
|
126
121
|
<label
|
|
127
122
|
class="pf-c-switch"
|
|
128
123
|
data-ouia-component-id="OUIA-Generated-Switch-9"
|
|
@@ -131,8 +126,7 @@ exports[`switch is checked and disabled 1`] = `
|
|
|
131
126
|
for="switch-is-checked-and-disabled"
|
|
132
127
|
>
|
|
133
128
|
<input
|
|
134
|
-
aria-label=""
|
|
135
|
-
aria-labelledby="switch-is-checked-and-disabled-on"
|
|
129
|
+
aria-label="Switch label"
|
|
136
130
|
checked=""
|
|
137
131
|
class="pf-c-switch__input"
|
|
138
132
|
disabled=""
|
|
@@ -161,11 +155,11 @@ exports[`switch is checked and disabled 1`] = `
|
|
|
161
155
|
</div>
|
|
162
156
|
</span>
|
|
163
157
|
</label>
|
|
164
|
-
</
|
|
158
|
+
</DocumentFragment>
|
|
165
159
|
`;
|
|
166
160
|
|
|
167
|
-
exports[`switch is not checked 1`] = `
|
|
168
|
-
<
|
|
161
|
+
exports[`Switch switch is not checked 1`] = `
|
|
162
|
+
<DocumentFragment>
|
|
169
163
|
<label
|
|
170
164
|
class="pf-c-switch"
|
|
171
165
|
data-ouia-component-id="OUIA-Generated-Switch-4"
|
|
@@ -174,8 +168,7 @@ exports[`switch is not checked 1`] = `
|
|
|
174
168
|
for="switch-is-not-checked"
|
|
175
169
|
>
|
|
176
170
|
<input
|
|
177
|
-
aria-label=""
|
|
178
|
-
aria-labelledby="switch-is-not-checked-on"
|
|
171
|
+
aria-label="Switch label"
|
|
179
172
|
class="pf-c-switch__input"
|
|
180
173
|
id="switch-is-not-checked"
|
|
181
174
|
type="checkbox"
|
|
@@ -186,23 +179,21 @@ exports[`switch is not checked 1`] = `
|
|
|
186
179
|
<span
|
|
187
180
|
aria-hidden="true"
|
|
188
181
|
class="pf-c-switch__label pf-m-on"
|
|
189
|
-
id="switch-is-not-checked-on"
|
|
190
182
|
>
|
|
191
183
|
On
|
|
192
184
|
</span>
|
|
193
185
|
<span
|
|
194
186
|
aria-hidden="true"
|
|
195
187
|
class="pf-c-switch__label pf-m-off"
|
|
196
|
-
id="switch-is-not-checked-off"
|
|
197
188
|
>
|
|
198
189
|
Off
|
|
199
190
|
</span>
|
|
200
191
|
</label>
|
|
201
|
-
</
|
|
192
|
+
</DocumentFragment>
|
|
202
193
|
`;
|
|
203
194
|
|
|
204
|
-
exports[`switch is not checked and disabled 1`] = `
|
|
205
|
-
<
|
|
195
|
+
exports[`Switch switch is not checked and disabled 1`] = `
|
|
196
|
+
<DocumentFragment>
|
|
206
197
|
<label
|
|
207
198
|
class="pf-c-switch"
|
|
208
199
|
data-ouia-component-id="OUIA-Generated-Switch-10"
|
|
@@ -211,8 +202,7 @@ exports[`switch is not checked and disabled 1`] = `
|
|
|
211
202
|
for="switch-is-not-checked-and-disabled"
|
|
212
203
|
>
|
|
213
204
|
<input
|
|
214
|
-
aria-label=""
|
|
215
|
-
aria-labelledby="switch-is-not-checked-and-disabled-on"
|
|
205
|
+
aria-label="Switch label"
|
|
216
206
|
class="pf-c-switch__input"
|
|
217
207
|
disabled=""
|
|
218
208
|
id="switch-is-not-checked-and-disabled"
|
|
@@ -240,11 +230,11 @@ exports[`switch is not checked and disabled 1`] = `
|
|
|
240
230
|
</div>
|
|
241
231
|
</span>
|
|
242
232
|
</label>
|
|
243
|
-
</
|
|
233
|
+
</DocumentFragment>
|
|
244
234
|
`;
|
|
245
235
|
|
|
246
|
-
exports[`switch with only label is checked 1`] = `
|
|
247
|
-
<
|
|
236
|
+
exports[`Switch switch with only label is checked 1`] = `
|
|
237
|
+
<DocumentFragment>
|
|
248
238
|
<label
|
|
249
239
|
class="pf-c-switch"
|
|
250
240
|
data-ouia-component-id="OUIA-Generated-Switch-5"
|
|
@@ -278,11 +268,11 @@ exports[`switch with only label is checked 1`] = `
|
|
|
278
268
|
On
|
|
279
269
|
</span>
|
|
280
270
|
</label>
|
|
281
|
-
</
|
|
271
|
+
</DocumentFragment>
|
|
282
272
|
`;
|
|
283
273
|
|
|
284
|
-
exports[`switch with only label is not checked 1`] = `
|
|
285
|
-
<
|
|
274
|
+
exports[`Switch switch with only label is not checked 1`] = `
|
|
275
|
+
<DocumentFragment>
|
|
286
276
|
<label
|
|
287
277
|
class="pf-c-switch"
|
|
288
278
|
data-ouia-component-id="OUIA-Generated-Switch-6"
|
|
@@ -315,5 +305,5 @@ exports[`switch with only label is not checked 1`] = `
|
|
|
315
305
|
Off
|
|
316
306
|
</span>
|
|
317
307
|
</label>
|
|
318
|
-
</
|
|
308
|
+
</DocumentFragment>
|
|
319
309
|
`;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
2
|
+
|
|
3
|
+
import { render, screen } from '@testing-library/react';
|
|
4
|
+
import userEvent from '@testing-library/user-event';
|
|
5
|
+
import '@testing-library/jest-dom';
|
|
6
|
+
|
|
7
|
+
import { TextArea, TextAreaBase } from '../TextArea';
|
|
5
8
|
import { ValidatedOptions } from '../../../helpers/constants';
|
|
6
9
|
|
|
7
10
|
const props = {
|
|
@@ -9,104 +12,96 @@ const props = {
|
|
|
9
12
|
value: 'test textarea'
|
|
10
13
|
};
|
|
11
14
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
)
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
test('
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
);
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
<TextArea
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
});
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
expect(myMock).not.toBeCalled();
|
|
105
|
-
});
|
|
106
|
-
|
|
107
|
-
test('should not throw console error when aria-label is given but no id', () => {
|
|
108
|
-
const myMock = jest.fn();
|
|
109
|
-
global.console = { ...global.console, error: myMock };
|
|
110
|
-
mount(<TextArea {...props} aria-label="test textarea" />);
|
|
111
|
-
expect(myMock).not.toBeCalled();
|
|
15
|
+
describe('TextArea', () => {
|
|
16
|
+
test('textarea input passes value and event to onChange handler', () => {
|
|
17
|
+
render(<TextAreaBase {...props} value='' aria-label="test textarea" />);
|
|
18
|
+
|
|
19
|
+
userEvent.type(screen.getByLabelText('test textarea'), 'a');
|
|
20
|
+
expect(props.onChange).toHaveBeenCalledWith('a', expect.any(Object));
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
test('simple text input', () => {
|
|
24
|
+
const { asFragment } = render(<TextArea {...props} aria-label="simple textarea" />);
|
|
25
|
+
expect(asFragment()).toMatchSnapshot();
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
test('disabled text input using isDisabled', () => {
|
|
29
|
+
const { asFragment } = render(<TextArea {...props} aria-label="is disabled textarea" isDisabled />);
|
|
30
|
+
expect(asFragment()).toMatchSnapshot();
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
test('disabled text input using disabled', () => {
|
|
34
|
+
const { asFragment } = render(<TextArea {...props} aria-label="disabled textarea" disabled />);
|
|
35
|
+
expect(asFragment()).toMatchSnapshot();
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
test('read only text input using isReadOnly', () => {
|
|
39
|
+
const { asFragment } = render(<TextArea {...props} aria-label="is read only textarea" isReadOnly />);
|
|
40
|
+
expect(asFragment()).toMatchSnapshot();
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
test('read only text input using readOnly', () => {
|
|
44
|
+
const { asFragment } = render(<TextArea {...props} aria-label="read only textarea" readOnly />);
|
|
45
|
+
expect(asFragment()).toMatchSnapshot();
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
test('validated text area success', () => {
|
|
49
|
+
render(<TextArea {...props} required validated={ValidatedOptions.success} aria-label="validated textarea" />);
|
|
50
|
+
expect(screen.getByLabelText('validated textarea')).toHaveClass('pf-m-success');
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
test('validated text area warning', () => {
|
|
54
|
+
render(<TextArea {...props} required validated={ValidatedOptions.warning} aria-label="validated textarea" />);
|
|
55
|
+
expect(screen.getByLabelText('validated textarea')).toHaveClass('pf-m-warning');
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
test('validated text area error', () => {
|
|
59
|
+
const { asFragment } = render(<TextArea {...props} required validated={ValidatedOptions.error} aria-label="validated textarea" />);
|
|
60
|
+
expect(asFragment()).toMatchSnapshot();
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
test('vertically resizable text area', () => {
|
|
64
|
+
const { asFragment } = render(<TextArea resizeOrientation="vertical" {...props} aria-label="vertical resize textarea" />);
|
|
65
|
+
expect(asFragment()).toMatchSnapshot();
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
test('horizontally resizable text area', () => {
|
|
69
|
+
const { asFragment } = render(
|
|
70
|
+
<TextArea
|
|
71
|
+
resizeOrientation="horizontal"
|
|
72
|
+
{...props}
|
|
73
|
+
required
|
|
74
|
+
validated={'error'}
|
|
75
|
+
aria-label="horizontal resize textarea"
|
|
76
|
+
/>
|
|
77
|
+
);
|
|
78
|
+
expect(asFragment()).toMatchSnapshot();
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
test('should throw console error when no aria-label or id is given', () => {
|
|
82
|
+
const myMock = jest.fn();
|
|
83
|
+
global.console = { ...global.console, error: myMock };
|
|
84
|
+
|
|
85
|
+
render(<TextArea {...props} />);
|
|
86
|
+
|
|
87
|
+
expect(myMock).toBeCalled();
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
test('should not throw console error when id is given but no aria-label', () => {
|
|
91
|
+
const myMock = jest.fn();
|
|
92
|
+
global.console = { ...global.console, error: myMock };
|
|
93
|
+
|
|
94
|
+
render(<TextArea {...props} id="5" />);
|
|
95
|
+
|
|
96
|
+
expect(myMock).not.toBeCalled();
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
test('should not throw console error when aria-label is given but no id', () => {
|
|
100
|
+
const myMock = jest.fn();
|
|
101
|
+
global.console = { ...global.console, error: myMock };
|
|
102
|
+
|
|
103
|
+
render(<TextArea {...props} aria-label="test textarea" />);
|
|
104
|
+
|
|
105
|
+
expect(myMock).not.toBeCalled();
|
|
106
|
+
});
|
|
112
107
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`disabled text input using disabled 1`] = `
|
|
4
|
-
<
|
|
3
|
+
exports[`TextArea disabled text input using disabled 1`] = `
|
|
4
|
+
<DocumentFragment>
|
|
5
5
|
<textarea
|
|
6
6
|
aria-invalid="false"
|
|
7
7
|
aria-label="disabled textarea"
|
|
@@ -10,11 +10,11 @@ exports[`disabled text input using disabled 1`] = `
|
|
|
10
10
|
>
|
|
11
11
|
test textarea
|
|
12
12
|
</textarea>
|
|
13
|
-
</
|
|
13
|
+
</DocumentFragment>
|
|
14
14
|
`;
|
|
15
15
|
|
|
16
|
-
exports[`disabled text input using isDisabled 1`] = `
|
|
17
|
-
<
|
|
16
|
+
exports[`TextArea disabled text input using isDisabled 1`] = `
|
|
17
|
+
<DocumentFragment>
|
|
18
18
|
<textarea
|
|
19
19
|
aria-invalid="false"
|
|
20
20
|
aria-label="is disabled textarea"
|
|
@@ -23,11 +23,11 @@ exports[`disabled text input using isDisabled 1`] = `
|
|
|
23
23
|
>
|
|
24
24
|
test textarea
|
|
25
25
|
</textarea>
|
|
26
|
-
</
|
|
26
|
+
</DocumentFragment>
|
|
27
27
|
`;
|
|
28
28
|
|
|
29
|
-
exports[`horizontally resizable text area 1`] = `
|
|
30
|
-
<
|
|
29
|
+
exports[`TextArea horizontally resizable text area 1`] = `
|
|
30
|
+
<DocumentFragment>
|
|
31
31
|
<textarea
|
|
32
32
|
aria-invalid="true"
|
|
33
33
|
aria-label="horizontal resize textarea"
|
|
@@ -36,24 +36,11 @@ exports[`horizontally resizable text area 1`] = `
|
|
|
36
36
|
>
|
|
37
37
|
test textarea
|
|
38
38
|
</textarea>
|
|
39
|
-
</
|
|
39
|
+
</DocumentFragment>
|
|
40
40
|
`;
|
|
41
41
|
|
|
42
|
-
exports[`
|
|
43
|
-
<
|
|
44
|
-
<textarea
|
|
45
|
-
aria-invalid="true"
|
|
46
|
-
aria-label="invalid textarea"
|
|
47
|
-
class="pf-c-form-control"
|
|
48
|
-
required=""
|
|
49
|
-
>
|
|
50
|
-
test textarea
|
|
51
|
-
</textarea>
|
|
52
|
-
</div>
|
|
53
|
-
`;
|
|
54
|
-
|
|
55
|
-
exports[`read only text input using isReadOnly 1`] = `
|
|
56
|
-
<div>
|
|
42
|
+
exports[`TextArea read only text input using isReadOnly 1`] = `
|
|
43
|
+
<DocumentFragment>
|
|
57
44
|
<textarea
|
|
58
45
|
aria-invalid="false"
|
|
59
46
|
aria-label="is read only textarea"
|
|
@@ -62,11 +49,11 @@ exports[`read only text input using isReadOnly 1`] = `
|
|
|
62
49
|
>
|
|
63
50
|
test textarea
|
|
64
51
|
</textarea>
|
|
65
|
-
</
|
|
52
|
+
</DocumentFragment>
|
|
66
53
|
`;
|
|
67
54
|
|
|
68
|
-
exports[`read only text input using readOnly 1`] = `
|
|
69
|
-
<
|
|
55
|
+
exports[`TextArea read only text input using readOnly 1`] = `
|
|
56
|
+
<DocumentFragment>
|
|
70
57
|
<textarea
|
|
71
58
|
aria-invalid="false"
|
|
72
59
|
aria-label="read only textarea"
|
|
@@ -75,11 +62,11 @@ exports[`read only text input using readOnly 1`] = `
|
|
|
75
62
|
>
|
|
76
63
|
test textarea
|
|
77
64
|
</textarea>
|
|
78
|
-
</
|
|
65
|
+
</DocumentFragment>
|
|
79
66
|
`;
|
|
80
67
|
|
|
81
|
-
exports[`simple text input 1`] = `
|
|
82
|
-
<
|
|
68
|
+
exports[`TextArea simple text input 1`] = `
|
|
69
|
+
<DocumentFragment>
|
|
83
70
|
<textarea
|
|
84
71
|
aria-invalid="false"
|
|
85
72
|
aria-label="simple textarea"
|
|
@@ -87,11 +74,11 @@ exports[`simple text input 1`] = `
|
|
|
87
74
|
>
|
|
88
75
|
test textarea
|
|
89
76
|
</textarea>
|
|
90
|
-
</
|
|
77
|
+
</DocumentFragment>
|
|
91
78
|
`;
|
|
92
79
|
|
|
93
|
-
exports[`validated text area error 1`] = `
|
|
94
|
-
<
|
|
80
|
+
exports[`TextArea validated text area error 1`] = `
|
|
81
|
+
<DocumentFragment>
|
|
95
82
|
<textarea
|
|
96
83
|
aria-invalid="true"
|
|
97
84
|
aria-label="validated textarea"
|
|
@@ -100,77 +87,11 @@ exports[`validated text area error 1`] = `
|
|
|
100
87
|
>
|
|
101
88
|
test textarea
|
|
102
89
|
</textarea>
|
|
103
|
-
</
|
|
104
|
-
`;
|
|
105
|
-
|
|
106
|
-
exports[`validated text area success 1`] = `
|
|
107
|
-
<TextArea
|
|
108
|
-
aria-label="validated textarea"
|
|
109
|
-
onChange={[MockFunction]}
|
|
110
|
-
required={true}
|
|
111
|
-
validated="success"
|
|
112
|
-
value="test textarea"
|
|
113
|
-
>
|
|
114
|
-
<TextArea
|
|
115
|
-
aria-label="validated textarea"
|
|
116
|
-
className=""
|
|
117
|
-
innerRef={null}
|
|
118
|
-
isDisabled={false}
|
|
119
|
-
isIconSprite={false}
|
|
120
|
-
isRequired={false}
|
|
121
|
-
onChange={[MockFunction]}
|
|
122
|
-
required={true}
|
|
123
|
-
resizeOrientation="both"
|
|
124
|
-
validated="success"
|
|
125
|
-
value="test textarea"
|
|
126
|
-
>
|
|
127
|
-
<textarea
|
|
128
|
-
aria-invalid={false}
|
|
129
|
-
aria-label="validated textarea"
|
|
130
|
-
className="pf-c-form-control pf-m-success"
|
|
131
|
-
onChange={[Function]}
|
|
132
|
-
required={true}
|
|
133
|
-
value="test textarea"
|
|
134
|
-
/>
|
|
135
|
-
</TextArea>
|
|
136
|
-
</TextArea>
|
|
137
|
-
`;
|
|
138
|
-
|
|
139
|
-
exports[`validated text area warning 1`] = `
|
|
140
|
-
<TextArea
|
|
141
|
-
aria-label="validated textarea"
|
|
142
|
-
onChange={[MockFunction]}
|
|
143
|
-
required={true}
|
|
144
|
-
validated="warning"
|
|
145
|
-
value="test textarea"
|
|
146
|
-
>
|
|
147
|
-
<TextArea
|
|
148
|
-
aria-label="validated textarea"
|
|
149
|
-
className=""
|
|
150
|
-
innerRef={null}
|
|
151
|
-
isDisabled={false}
|
|
152
|
-
isIconSprite={false}
|
|
153
|
-
isRequired={false}
|
|
154
|
-
onChange={[MockFunction]}
|
|
155
|
-
required={true}
|
|
156
|
-
resizeOrientation="both"
|
|
157
|
-
validated="warning"
|
|
158
|
-
value="test textarea"
|
|
159
|
-
>
|
|
160
|
-
<textarea
|
|
161
|
-
aria-invalid={false}
|
|
162
|
-
aria-label="validated textarea"
|
|
163
|
-
className="pf-c-form-control pf-m-warning"
|
|
164
|
-
onChange={[Function]}
|
|
165
|
-
required={true}
|
|
166
|
-
value="test textarea"
|
|
167
|
-
/>
|
|
168
|
-
</TextArea>
|
|
169
|
-
</TextArea>
|
|
90
|
+
</DocumentFragment>
|
|
170
91
|
`;
|
|
171
92
|
|
|
172
|
-
exports[`vertically resizable text area 1`] = `
|
|
173
|
-
<
|
|
93
|
+
exports[`TextArea vertically resizable text area 1`] = `
|
|
94
|
+
<DocumentFragment>
|
|
174
95
|
<textarea
|
|
175
96
|
aria-invalid="false"
|
|
176
97
|
aria-label="vertical resize textarea"
|
|
@@ -178,5 +99,5 @@ exports[`vertically resizable text area 1`] = `
|
|
|
178
99
|
>
|
|
179
100
|
test textarea
|
|
180
101
|
</textarea>
|
|
181
|
-
</
|
|
102
|
+
</DocumentFragment>
|
|
182
103
|
`;
|