Sha256: c53a506b97438699c83d3f6c6f6abbe267921245beda58958b0b890f65bc55c9

Contents?: true

Size: 771 Bytes

Versions: 99

Compression:

Stored size: 771 Bytes

Contents

import React from 'react'
import { render, screen } from '../utilities/test-utils'

import { MultiLevelSelect } from '../'

const treeData = {
  label: 'search me',
  value: 'searchme',
  id:'default1',
  children: [
    {
      label: 'search me too',
      value: 'searchmetoo',
      id:'default2',
      children: [
        {
          label: 'No one can get me',
          value: 'anonymous',
          id:'default2',
        },
      ],
    },
  ],
}

const testId = "multiselect-test"
test('should render custom class', () => {
  render(
      <MultiLevelSelect
          className='custom-class'
          data={{ testid: testId}}
          treeData={treeData}
      /> 
  )

  const kit = screen.getByTestId(testId)
  expect(kit).toHaveClass('custom-class')
})

Version data entries

99 entries across 99 versions & 1 rubygems

Version Path
playbook_ui-12.25.0.pre.alpha.play822bolddefaultfortitle3764 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.test.jsx
playbook_ui-12.25.0.pre.alpha.PLAY733DetailKit761 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.test.jsx
playbook_ui-12.25.0.pre.alpha.railsmultilevelimprovements758 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.test.jsx
playbook_ui-12.25.0 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.test.jsx
playbook_ui-12.24.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown756 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.test.jsx
playbook_ui-12.24.0.pre.alpha.play824753 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.test.jsx
playbook_ui-12.24.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown752 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.test.jsx
playbook_ui-12.24.0.pre.alpha.play824751 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.test.jsx
playbook_ui-12.24.0.pre.alpha.railsmultilevelimprovements749 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.test.jsx
playbook_ui-12.24.0.pre.alpha.play824745 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.test.jsx
playbook_ui-12.24.0.pre.alpha.railsmultilevelimprovements742 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.test.jsx
playbook_ui-12.24.0.pre.alpha.railsmultilevelimprovements741 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.test.jsx
playbook_ui-12.24.0.pre.alpha.railsmultilevelimprovements739 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.test.jsx
playbook_ui-12.24.0.pre.alpha.play824733 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.test.jsx
playbook_ui-12.24.0.pre.alpha.play833boldoptionfortitle2and3721 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.test.jsx
playbook_ui-12.24.0.pre.alpha.alphatestforselfhostfak720 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.test.jsx
playbook_ui-12.24.0.pre.alpha.play833boldoptionfortitle2and3719 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.test.jsx
playbook_ui-12.24.0.pre.alpha.play833boldoptionfortitle2and3717 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.test.jsx
playbook_ui-12.24.0 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.test.jsx
playbook_ui-12.23.0.pre.alpha.movemarkdown712 app/pb_kits/playbook/pb_multi_level_select/multi_level_select.test.jsx