Skip to content

Unit Testing Components #641

@BE-Webdesign

Description

@BE-Webdesign

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:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good First IssueAn 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.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions