Sha256: ef9eea0ffce96389ae747a9cb7ed6696b7157d579eaf7ecaad1c9f87f89ee518

Contents?: true

Size: 817 Bytes

Versions: 641

Compression:

Stored size: 817 Bytes

Contents

import React from 'react'
import { render, screen } from '../utilities/test-utils'
import BreadCrumbs from './_bread_crumbs'
import BreadCrumbItem from './_bread_crumb_item'
import { Icon, Title } from '../'

it('should render bread crumbs', () => {
  const testId = 'breadCrumbs'
  render(
    <BreadCrumbs
        data={{ testid: testId }}
        name={name}
    >
      <Icon
          icon="home"
          size="1x"
      />
      <BreadCrumbItem
          dark
          href="/home"
      >
        <Title
            size="4"
            tag="span"
            text="Home"
        />
      </BreadCrumbItem>
    </BreadCrumbs>
  )
  const kit = screen.getByTestId(testId)
  const label = screen.getByText('Home')

  expect(kit).toHaveClass('pb_bread_crumbs_kit')
  expect(label).toHaveTextContent('Home')
})

Version data entries

641 entries across 641 versions & 1 rubygems

Version Path
playbook_ui-13.34.1.pre.alpha.play1407statvaluekitinconsistencies3388 app/pb_kits/playbook/pb_bread_crumbs/bread_crumbs.test.js
playbook_ui-13.34.1.pre.alpha.PLAY14703378 app/pb_kits/playbook/pb_bread_crumbs/bread_crumbs.test.js
playbook_ui-13.34.1 app/pb_kits/playbook/pb_bread_crumbs/bread_crumbs.test.js
playbook_ui-13.34.0.pre.alpha.PBNTR358responsiveadvancedtablereact3370 app/pb_kits/playbook/pb_bread_crumbs/bread_crumbs.test.js
playbook_ui-13.34.0.pre.alpha.PBNTR358responsiveadvancedtablereact3369 app/pb_kits/playbook/pb_bread_crumbs/bread_crumbs.test.js
playbook_ui-13.34.0.pre.alpha.PBNTR358responsiveadvancedtablereact3368 app/pb_kits/playbook/pb_bread_crumbs/bread_crumbs.test.js
playbook_ui-13.34.0.pre.alpha.PBNTR358responsiveadvancedtablereact3366 app/pb_kits/playbook/pb_bread_crumbs/bread_crumbs.test.js
playbook_ui-13.34.0 app/pb_kits/playbook/pb_bread_crumbs/bread_crumbs.test.js
playbook_ui-13.33.1.pre.alpha.play1407statvaluekitinconsistencies3352 app/pb_kits/playbook/pb_bread_crumbs/bread_crumbs.test.js
playbook_ui-13.33.1.pre.alpha.PLAY14063320 app/pb_kits/playbook/pb_bread_crumbs/bread_crumbs.test.js
playbook_ui-13.33.1 app/pb_kits/playbook/pb_bread_crumbs/bread_crumbs.test.js
playbook_ui-13.33.0.pre.alpha.PBNTR405dropdownformfixesrails3311 app/pb_kits/playbook/pb_bread_crumbs/bread_crumbs.test.js
playbook_ui-13.33.0.pre.alpha.PLAY1454formpillicons3309 app/pb_kits/playbook/pb_bread_crumbs/bread_crumbs.test.js
playbook_ui-13.33.0 app/pb_kits/playbook/pb_bread_crumbs/bread_crumbs.test.js
playbook_ui-13.32.0.pre.alpha.PBNTR405dropdownformfixesrails3301 app/pb_kits/playbook/pb_bread_crumbs/bread_crumbs.test.js
playbook_ui-13.32.0.pre.alpha.PLAY1138iconkitaddcolorprop3268 app/pb_kits/playbook/pb_bread_crumbs/bread_crumbs.test.js
playbook_ui-13.32.0.pre.alpha.play1416movealiaslogic3266 app/pb_kits/playbook/pb_bread_crumbs/bread_crumbs.test.js
playbook_ui-13.32.0.pre.alpha.play1416movealiaslogic3239 app/pb_kits/playbook/pb_bread_crumbs/bread_crumbs.test.js
playbook_ui-13.32.0.pre.alpha.PLAY14103236 app/pb_kits/playbook/pb_bread_crumbs/bread_crumbs.test.js
playbook_ui-13.31.0.pre.alpha.play1416movealiaslogic3232 app/pb_kits/playbook/pb_bread_crumbs/bread_crumbs.test.js