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.15.0.pre.alpha.1132globalpropdatepickerspacing1929 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.15.0.pre.alpha.PLAY10851907 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.15.0.pre.alpha.PLAY11311893 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.15.0.pre.alpha.reactselectbump581876 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.15.0.pre.alpha.PLAY10831873 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.14.0.pre.alpha.play1101betaicons1825 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.14.0.pre.alpha.play1101betaicons1798 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.14.0.pre.alpha.play1120lintdatepicker1797 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.15.0 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.14.0.pre.alpha.PLAY1109bugdisplaypropblocksfontcolor1784 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.14.0.pre.alpha.play1106filter1751 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.14.0.pre.alpha.play1106filter1748 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.14.0 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.13.0.pre.alpha.PLAY1097linterenhancedelement1728 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.13.0.pre.alpha.play10821727 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.13.0.pre.alpha.play10821726 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.13.0.pre.alpha.play10221678 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.13.0.pre.alpha.PLAY1090csstokens1675 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.13.0.pre.alpha.play900startratingasinput1657 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.13.0 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js