keystonejs/keystone-classic

Admin interface unit testing

Ouverte

#3 108 ouverte le 1 juil. 2016

 (2 commentaires) (0 réaction) (0 personne assignée)JavaScript (2 288 forks)batch import
enhancementhelp wanted

Métriques du dépôt

Stars
 (14 656 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

We need to unit test all of our components, actions, reducers, etc. in the admin interface so we can safely go in and refactor them.

To test a component take a look at one of the existing tests (like the <Brand /> one), copy the basic structure and test every way the code of a component could go!


Status report (possibly not all components listed, bold ones are hard):

  • Signin/
    • Signin
    • components/
      • Alert
      • Brand
      • LoginForm
      • UserInfo
  • App/
    • store.js
    • App
    • shared/
      • AlertMessages
      • ConfirmationDialog
      • CreateForm
      • FlashMessage
      • FlashMessages
      • InvalidFieldType
      • Portal
      • Popout/
        • Popout
        • PopoutBody
        • PopoutFooter
        • PopoutHeader
        • PopoutList
        • PopoutListHeading
        • PopoutListItem
        • PopoutPane
    • components/
      • Footer
      • Navigation/
        • Mobile/
          • MobileNavigation (window.innerWidth?)
          • MobileListItem
          • MobileSectionItem
        • Primary
          • PrimaryNavigation (window.innerWidth?)
          • PrimaryNavItem
        • Secondary
          • SecondaryNavigation (window.innerWidth?)
          • SecondaryNavItem
    • screens/
      • Home/
        • components/
          • ListTile
        • actions.js
        • reducer.js
        • Home
      • Item/
        • components/
          • Toolbar/
            • Toolbar
            • ToolbarSection
          • AltText
          • EditForm (FieldTypes?)
          • EditFormHeader
          • FooterBar
          • FormHeading
          • RelatedItemList
        • actions.js
        • reducer.js
        • Item
      • List/
        • actions/
          • active
          • dragdrop
          • actions
          • item
        • components/
          • Filtering/
          • ItemsTable/
          • ListColumnsForm
          • ListControl
          • ListDownloadForm
          • ListSort
          • UpdateForm
        • reducers/
          • active
          • main #(Keystone.lists?)
        • List

Guide contributeur