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.16.0.pre.alpha.PBNTR184betaflaginmenuyml2085 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.16.0.pre.alpha.PBNTR178AdvancedTableDocs2072 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.17.0 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.16.0.pre.alpha.play1141iconkitusinglibrary2060 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.16.0.pre.alpha.play1141iconkitusinglibrary2038 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.16.0.pre.alpha.play1141iconkitusinglibrary2037 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.16.0.pre.alpha.nodejsupgrade2036 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.16.0.pre.alpha.PBNTR177NewAdvancedTableKit2035 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.16.0.pre.alpha.PBNTR177NewAdvancedTableKit2034 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.16.0.pre.alpha.PBNTR177NewAdvancedTableKit2023 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.16.0.pre.alpha.PBNTR177NewAdvancedTableKit2010 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.16.0.pre.alpha.PLAY11642006 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.16.0.pre.alpha.play1141iconkitusinglibrary1995 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.16.0.pre.alpha.play1141iconkitusinglibrary1993 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.16.0.pre.alpha.PLAY11641992 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.16.0.pre.alpha.PLAY11641991 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.16.0.pre.alpha.fonttest1972 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.15.0.pre.alpha.play1141iconkitusinglibrary1956 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.16.0 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.15.0.pre.alpha.play10841940 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js