-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Unit Testing Components #641
Copy link
Copy link
Closed
Labels
Good First IssueAn issue that's suitable for someone looking to contribute for the first timeAn issue that's suitable for someone looking to contribute for the first time[Type] Automated TestingTesting infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.
Description
Would unit testing components be of value to the project? It doesn't appear that anyone is pursuing testing too much, maybe that would be a good place for me to be productive? Negatives is it will slow down our CI build and as things change it will slow down PRs, but we could do the component testing separately and eventually streamline it into the CI, so we don't have those kind of project flow problems, until things are more stable.
If you add tests to a component please check the matching box off and edit the list item to feature a # link to the Pull Request that added the initial tests.
Here is a list of components to be tested:
Generic Components:
- autocomplete
- button ( Adds button component tests. #926 )
- clipboard-button
- dashicon ( Add Dashicon unit tests. #928 )
- drop-zone
- dropdown-menu
- dropdown
- external-link
- form-file-upload
- form-toggle ( Add basic FormToggle tetsts. #930 )
- form-token-field ( Components: Adding a generic token field component #924 )
- higher-order ( Add tests to withFocusReturn HOC. #931 )
- navigate-regions
- with-api-data
- with-context
- with-fallback-styles
- with-focus-outside
- with-focus-return
- with-instance-id
- with-spoken-messages
- icon-button ( Adds basic IconButton component tests. #932 )
- keyboard-shortcuts
- menu-items
- navigable-container
- notice
- panel ( Add basic tests for Panel Component. #933 )
- placeholder ( Add Placeholder component tests #935 )
- popover
- responsive-wrapper
- sandbox
- slot-fill
- spinner ( Add basic Spinner component tests. #936 )
- tab-panel
- toolbar
- tooltip
Editor Components:
- autosave-monitor
- block-drop-zone
- block-inspector
- block-list
- block-mover ( Add tests for the BlockMover Component. #980 )
- block-settings-menu
- block-switcher ( Add tests for the BlockSwitcher component. #990 )
- block-toolbar
- default-block-appender
- document-outline
- editor-history
- editor-notices
- error-boundary
- inserter
- meta-boxes
- navigable-toolbar
- page-attributes
- post-author
- post-comments
- post-excerpt
- post-featured-image
- post-format
- post-last-revision
- post-pending-status
- post-permalink
- post-pingbacks
- post-preview-button
- post-publish-button
- post-publish-dropdown
- post-publish-with-dropdown
- post-saved-state
- post-schedule
- post-sticky
- post-taxonomies
- post-text-editor
- post-title
- post-trash
- post-visibility
- provider
- table-of-contents
- unsaved-changes-warning
- warning
- word-count
- writing-flow
Block Components
- alignment-toolbar
- autocompleters
- block-alignment-toolbar
- block-controls
- block-description
- block-edit
- block-icon
- color-palette
- contrast-checker
- Editable ( 😱 )
- inspector-controls
- base-control
- checkbox-control
- radio-control
- range-control
- select-control
- text-control
- textarea-control
- toggle-control
- library:
- audio
- button
- categories
- code
- cover-image
- embed
- freeform
- gallery
- heading
- html
- image
- latest-posts
- list
- more
- paragraph
- preformatted
- pullquote
- quote
- reusable-block
- separator
- shortcode
- table
- text-columns
- verse
- video
- media-upload-button
- url-input
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Good First IssueAn issue that's suitable for someone looking to contribute for the first timeAn issue that's suitable for someone looking to contribute for the first time[Type] Automated TestingTesting infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.
Type
Fields
Give feedbackNo fields configured for issues without a type.