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.21.0.pre.alpha.PLAY12582515 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.21.0.pre.alpha.PLAY12582514 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.22.0 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.21.0.pre.alpha.PBNTR243globalpositioningpropinset2504 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.21.0.pre.alpha.PLAY12652489 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.21.0.pre.alpha.PLAY12582474 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.21.0.pre.alpha.PBNTR224letuserresetrowexpansion2466 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.21.0.pre.alpha.PLAY120322465 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.21.0.pre.alpha.pbntr220improveexpansionspeed2451 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.21.0.pre.alpha.PBNTR224letuserresetrowexpansion2441 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.21.0.pre.alpha.PBNTR225advancedtablefeedback2438 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.21.0.pre.alpha.PBNTR238DatePickerYearBug2436 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.21.0.pre.alpha.pbntr220improveexpansionspeed2431 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.21.0.pre.alpha.pbntr220improveexpansionspeed2415 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.20.0.pre.alpha.play1247htmloptions2404 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.20.0.pre.alpha.play1247htmloptions2403 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.20.0.pre.alpha.PLAY12572402 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.21.0 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.20.0.pre.alpha.PBNTR225advancedtablefeedback2375 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js
playbook_ui-13.19.0.pre.alpha.PBNTR200addadvancedtablekitdarkmodestyles2346 app/pb_kits/playbook/pb_loading_inline/loading_inline.test.js