Skip to content

ui: Eliminate React errors from missing key props in test runs #45188

@dhartunian

Description

@dhartunian

Eliminate React errors from missing key props in test runs.

Current run produces these errors:

ERROR: 'Warning: Each child in a list should have a unique "key" prop. See https://fb.me/react-warning-keys for more information.%s', '
    in tbody (created by SortableTable)
    in table (created by SortableTable)
    in SortableTable (created by TestSortedTable)
    in TestSortedTable (created by WrapperComponent)
ERROR: 'Warning: Each child in a list should have a unique "key" prop. See https://fb.me/react-warning-keys for more information.%s', '
    in tbody (created by SortableTable)
    in table (created by SortableTable)
    in SortableTable (created by TestSortedTable)
    in TestSortedTable (created by WrapperComponent)
    in WrapperComponent'
ERROR: 'Warning: Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.%s', '

Check the render method of `CustomChart`.', '', '
    in CustomChartTable (created by CustomChart)
    in CustomChart (created by ConnectFunction)
    in ConnectFunction (created by Context.Consumer)
    in withRouter(Connect(CustomChart)) (created by Context.Consumer)
    in Route (created by App)
    in Switch (created by App)
    in div (created by Layout)
    in div (created by Layout)
    in div (created by Layout)
    in RequireLogin (created by ConnectFunction)
    in ConnectFunction (created by Context.Consumer)
    in withRouter(Connect(RequireLogin)) (created by Layout)
    in Layout (created by ConnectFunction)
    in ConnectFunction (created by Context.Consumer)
    in withRouter(Connect(Layout)) (created by App)
    in Route (created by App)
    in Switch (created by App)
    in Router (created by ConnectedRouter)
    in ConnectedRouter (created by Context.Consumer)
    in ConnectedRouterWithContext (created by ConnectFunction)
    in ConnectFunction (created by App)
    in Provider (created by App)
    in App (created by WrapperComponent)
ERROR: 'Warning: Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.%s', '

Check the render method of `CustomChart`.', '', '
    in CustomChartTable (created by CustomChart)
    in CustomChart (created by ConnectFunction)
    in ConnectFunction (created by Context.Consumer)
    in withRouter(Connect(CustomChart)) (created by Context.Consumer)
    in Route (created by App)
    in Switch (created by App)
    in div (created by Layout)
    in div (created by Layout)
    in div (created by Layout)
    in RequireLogin (created by ConnectFunction)
    in ConnectFunction (created by Context.Consumer)
    in withRouter(Connect(RequireLogin)) (created by Layout)
    in Layout (created by ConnectFunction)
    in ConnectFunction (created by Context.Consumer)
    in withRouter(Connect(Layout)) (created by App)
    in Route (created by App)
    in Switch (created by App)
    in Router (created by ConnectedRouter)
    in ConnectedRouter (created by Context.Consumer)
    in ConnectedRouterWithContext (created by ConnectFunction)
    in ConnectFunction (created by App)
    in Provider (created by App)
    in App (created by WrapperComponent)
    in WrapperComponent'
HeadlessChrome 79.0.3945 (Mac OS X 10.15.3) ERROR: 'Warning: Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.%s', '

Check the render method of `Dropdown`.', '', '
    in DropdownItem (created by Dropdown)
    in Dropdown (created by NodeList)
    in div (created by NodeList)
    in div (created by NodeList)
    in NodeList (created by Context.Consumer)
    in Route (created by App)
    in Switch (created by App)
    in div (created by ClusterOverview)
    in div (created by ClusterOverview)
    in ClusterOverview (created by App)
    in Route (created by App)
    in Switch (created by App)
    in div (created by Layout)
    in div (created by Layout)
    in div (created by Layout)
    in RequireLogin (created by ConnectFunction)
    in ConnectFunction (created by Context.Consumer)
    in withRouter(Connect(RequireLogin)) (created by Layout)
    in Layout (created by ConnectFunction)
    in ConnectFunction (created by Context.Consumer)
    in withRouter(Connect(Layout)) (created by App)
    in Route (created by App)
    in Switch (created by App)
    in Router (created by ConnectedRouter)
    in ConnectedRouter (created by Context.Consumer)
    in ConnectedRouterWithContext (created by ConnectFunction)
    in ConnectFunction (created by App)
    in Provider (created by App)
    in App (created by WrapperComponent)
    in WrapperComponent'
HeadlessChrome 79.0.3945 (Mac OS X 10.15.3) ERROR: 'Warning: Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.%s', '

Check the render method of `Dropdown`.', '', '
    in DropdownItem (created by Dropdown)
    in Dropdown (created by NodeList)
    in div (created by NodeList)
    in div (created by NodeList)
    in NodeList (created by Context.Consumer)
    in Route (created by App)
    in Switch (created by App)
    in div (created by ClusterOverview)
    in div (created by ClusterOverview)
    in ClusterOverview (created by App)
    in Route (created by App)
    in Switch (created by App)
    in div (created by Layout)
    in div (created by Layout)
    in div (created by Layout)
    in RequireLogin (created by ConnectFunction)
    in ConnectFunction (created by Context.Consumer)
    in withRouter(Connect(RequireLogin)) (created by Layout)
    in Layout (created by ConnectFunction)
    in ConnectFunction (created by Context.Consumer)
    in withRouter(Connect(Layout)) (created by App)
    in Route (created by App)
    in Switch (created by App)
    in Router (created by ConnectedRouter)
    in ConnectedRouter (created by Context.Consumer)
    in ConnectedRouterWithContext (created by ConnectFunction)
    in ConnectFunction (created by App)
    in Provider (created by App)
    in App (created by WrapperComponent)
    in WrapperComponent'
HeadlessChrome 79.0.3945 (Mac OS X 10.15.3) ERROR: 'Warning: Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.%s', '

Check the render method of `Sidebar`.', '', '
    in NavigationItem (created by Sidebar)
    in Sidebar (created by ConnectFunction)
    in ConnectFunction (created by Context.Consumer)
    in withRouter(Connect(Sidebar)) (created by Layout)
    in div (created by Layout)
    in div (created by Layout)
    in div (created by Layout)
    in RequireLogin (created by ConnectFunction)
    in ConnectFunction (created by Context.Consumer)
    in withRouter(Connect(RequireLogin)) (created by Layout)
    in Layout (created by ConnectFunction)
    in ConnectFunction (created by Context.Consumer)
    in withRouter(Connect(Layout)) (created by App)
    in Route (created by App)
    in Switch (created by App)
    in Router (created by ConnectedRouter)
    in ConnectedRouter (created by Context.Consumer)
    in ConnectedRouterWithContext (created by ConnectFunction)
    in ConnectFunction (created by App)
    in Provider (created by App)
    in App (created by WrapperComponent)
    in WrapperComponent'
HeadlessChrome 79.0.3945 (Mac OS X 10.15.3) ERROR: 'Warning: Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.%s', '

Check the render method of `Sidebar`.', '', '
    in NavigationItem (created by Sidebar)
    in Sidebar (created by ConnectFunction)
    in ConnectFunction (created by Context.Consumer)
    in withRouter(Connect(Sidebar)) (created by Layout)
    in div (created by Layout)
    in div (created by Layout)
    in div (created by Layout)
    in RequireLogin (created by ConnectFunction)
    in ConnectFunction (created by Context.Consumer)
    in withRouter(Connect(RequireLogin)) (created by Layout)
    in Layout (created by ConnectFunction)
    in ConnectFunction (created by Context.Consumer)
    in withRouter(Connect(Layout)) (created by App)
    in Route (created by App)
    in Switch (created by App)
    in Router (created by ConnectedRouter)
    in ConnectedRouter (created by Context.Consumer)
    in ConnectedRouterWithContext (created by ConnectFunction)
    in ConnectFunction (created by App)
    in Provider (created by App)
    in App (created by WrapperComponent)
    in WrapperComponent'

Metadata

Metadata

Assignees

Labels

A-webuiTriage label for DB Console (fka admin UI) issues. Add this if nothing else is clear.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions