Sha256: a150451ed4dbe5b69e5f4e496c31bfaf99c6876d31f9b26bfe4319c8a4b8dcf1

Contents?: true

Size: 813 Bytes

Versions: 819

Compression:

Stored size: 813 Bytes

Contents

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

import StatChange from './_stat_change'

test('it renders each status', () => {
    render(
      <StatChange
          change="increase"
          value="28.4"
      />
    )

    const kit = screen.getByText('28.4%')
    expect(kit).toHaveClass(`pb_body_kit_positive`)
})

test('it renders preset icon', () => {
    render(
      <StatChange
          change="increase"
          value="28.4"
      />
    )

    const kit = screen.getByLabelText('arrow-up icon')
    expect(kit).toBeTruthy
})

test('it renders custom icon', () => {
    render(
      <StatChange
          icon="chart-line-down"
          value={6.1}
      />

    )

    const kit = screen.getByLabelText('chart-line-down icon')
    expect(kit).toBeTruthy
})

Version data entries

819 entries across 819 versions & 1 rubygems

Version Path
playbook_ui-14.9.0.pre.rc.9 app/pb_kits/playbook/pb_stat_change/stat_change.test.js
playbook_ui-14.8.0.pre.alpha.PLAY1680newwidthprop4661 app/pb_kits/playbook/pb_stat_change/stat_change.test.js
playbook_ui-14.8.0.pre.alpha.PLAY1658tanstackbump4657 app/pb_kits/playbook/pb_stat_change/stat_change.test.js
playbook_ui-14.8.0.pre.alpha.PLAY1649rolloutheightglobalprops4635 app/pb_kits/playbook/pb_stat_change/stat_change.test.js
playbook_ui-14.9.0.pre.rc.8 app/pb_kits/playbook/pb_stat_change/stat_change.test.js
playbook_ui-14.8.0.pre.alpha.PLAY1598floatinguiupgrade4617 app/pb_kits/playbook/pb_stat_change/stat_change.test.js
playbook_ui-14.9.0.pre.rc.7 app/pb_kits/playbook/pb_stat_change/stat_change.test.js
playbook_ui-14.9.0.pre.rc.6 app/pb_kits/playbook/pb_stat_change/stat_change.test.js
playbook_ui-14.9.0.pre.rc.5 app/pb_kits/playbook/pb_stat_change/stat_change.test.js
playbook_ui-14.8.0.pre.alpha.pbntr661createstickyleftprop4612 app/pb_kits/playbook/pb_stat_change/stat_change.test.js
playbook_ui-14.8.0.pre.alpha.play1648heightglobalprops4606 app/pb_kits/playbook/pb_stat_change/stat_change.test.js
playbook_ui-14.9.0.pre.rc.4 app/pb_kits/playbook/pb_stat_change/stat_change.test.js
playbook_ui-14.9.0.pre.rc.3 app/pb_kits/playbook/pb_stat_change/stat_change.test.js
playbook_ui-14.9.0.pre.rc.2 app/pb_kits/playbook/pb_stat_change/stat_change.test.js
playbook_ui-14.8.0.pre.alpha.revert3916revert3893PBNTR667railstypeaheadformintegration4567 app/pb_kits/playbook/pb_stat_change/stat_change.test.js
playbook_ui-14.8.0.pre.alpha.revert3916revert3893PBNTR667railstypeaheadformintegration4565 app/pb_kits/playbook/pb_stat_change/stat_change.test.js
playbook_ui-14.8.0.pre.alpha.PLAY1598floatinguiupgrade4563 app/pb_kits/playbook/pb_stat_change/stat_change.test.js
playbook_ui-14.8.0.pre.alpha.play1648heightglobalprops4559 app/pb_kits/playbook/pb_stat_change/stat_change.test.js
playbook_ui-14.9.0.pre.rc.1 app/pb_kits/playbook/pb_stat_change/stat_change.test.js
playbook_ui-14.8.0.pre.alpha.PLAY16254545 app/pb_kits/playbook/pb_stat_change/stat_change.test.js