Sha256: 0b1ef77f9d396dbe3e62dd35498e7e44d22688a147e915a13ec9f51c91a6df03

Contents?: true

Size: 555 Bytes

Versions: 115

Compression:

Stored size: 555 Bytes

Contents

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

/* eslint-disable jsx-control-statements/jsx-jcs-no-undef */

/* See these resources for more testing info:
  - https://github.com/testing-library/jest-dom#usage for useage and examples
  - https://jestjs.io/docs/en/using-matchers
*/

test('Kit renders Dialog', () => {
  const testId = 'test1'

  render(
    <Dialog
        data={{ testid: testId }}
    />
  )

  const kit = screen.getByTestId(testId)
  expect(kit).toBeInTheDocument()
})

Version data entries

115 entries across 115 versions & 1 rubygems

Version Path
playbook_ui-10.23.0.pre.cachetest app/pb_kits/playbook/pb_dialog/dialog.test.jsx
playbook_ui-10.23.0.pre.alpha1 app/pb_kits/playbook/pb_dialog/dialog.test.jsx
playbook_ui-10.22.1 app/pb_kits/playbook/pb_dialog/dialog.test.jsx
playbook_ui-10.22.0 app/pb_kits/playbook/pb_dialog/dialog.test.jsx
playbook_ui-10.21.1.pre.alpha1 app/pb_kits/playbook/pb_dialog/dialog.test.jsx
playbook_ui-10.21.0.pre.alpha.lightbox.2 app/pb_kits/playbook/pb_dialog/dialog.test.jsx
playbook_ui-10.21.0 app/pb_kits/playbook/pb_dialog/dialog.test.jsx
playbook_ui-10.21.0.pre.alpha.lightbox app/pb_kits/playbook/pb_dialog/dialog.test.jsx
playbook_ui-10.21.0.pre.alpha.rg1 app/pb_kits/playbook/pb_dialog/dialog.test.jsx
playbook_ui-10.21.0.pre.alpha.jg1 app/pb_kits/playbook/pb_dialog/dialog.test.jsx
playbook_ui-10.21.0.pre.alpha.na1 app/pb_kits/playbook/pb_dialog/dialog.test.jsx
playbook_ui-10.21.0.pre.alpha.jd1 app/pb_kits/playbook/pb_dialog/dialog.test.jsx
playbook_ui-10.20.0 app/pb_kits/playbook/pb_dialog/dialog.test.jsx
playbook_ui-10.19.0 app/pb_kits/playbook/pb_dialog/dialog.test.jsx
playbook_ui-10.19.0.pre.lightbox app/pb_kits/playbook/pb_dialog/dialog.test.jsx
playbook_ui-10.18.2 app/pb_kits/playbook/pb_dialog/dialog.test.jsx
playbook_ui-10.19.0.pre.popover.alpha1 app/pb_kits/playbook/pb_dialog/dialog.test.jsx
playbook_ui-10.18.1 app/pb_kits/playbook/pb_dialog/dialog.test.jsx
playbook_ui-10.18.0 app/pb_kits/playbook/pb_dialog/dialog.test.jsx
playbook_ui-10.17.0 app/pb_kits/playbook/pb_dialog/dialog.test.jsx