Sha256: 75cad17ea20a1cbca6903bb4313774cd979f1ad898165e4f8fad0925790cdc93

Contents?: true

Size: 942 Bytes

Versions: 415

Compression:

Stored size: 942 Bytes

Contents

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

const testId = "loadingInline"

test('should render custom class and data', () => {
    render(
        <LoadingInline
            className='custom-class'
            data={{ testid: testId }}
        />
    )

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

test('should render id', () => {
    render(
        <LoadingInline
            data={{ testid: testId }}
            id={testId}
        />
    )

    const kit = screen.getByTestId(testId)
    expect(kit).toHaveProperty('id', testId)
})

test('should render aria-label', () => {
    render(
        <LoadingInline
            aria={{ label: testId }}
            data={{ testid: testId }}
        />
    )

    const kit = screen.getByTestId(testId)
    expect(kit).toHaveAttribute('aria-label', testId)
})

Version data entries

415 entries across 415 versions & 1 rubygems

Version Path
playbook_ui-13.25.0.pre.alpha.PBNTR291Dropdownrailsv22812 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.26.0 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.25.0.pre.alpha.PLAY1249fixTooltipswrappingformelementscausingmisalignment2785 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.25.0.pre.alpha.PLAY1249fixTooltipswrappingformelementscausingmisalignment2783 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.25.0.pre.alpha.PBNTR272Dropdownkitv42769 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.25.0.pre.alpha.barchartfix2766 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.25.0.pre.alpha.PLAY761globalpaddingpropsbuttons2713 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.25.0 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.24.0.pre.alpha.play1305drycontenttag2689 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.24.0.pre.alpha.PBNTR261NewKitDropdown2681 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.24.0.pre.alpha.PLAY1181circleiconkitfixsizingerrorglobalspacingprops2675 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.24.0.pre.alpha.PLAY998backgroundkitremoveemptyinlinline2666 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.23.0.pre.alpha.PLAY1284investigation2657 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.24.0 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.22.0.pre.alpha.pbntr254barchartnegativenumber2640 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.22.0.pre.alpha.PLAY1297updatetextstyles2636 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.22.0.pre.alpha.playbookgemspecrailsversion2608 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.23.0 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.21.0.pre.alpha.PLAY12582531 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.21.0.pre.alpha.PLAY12582516 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js