import '../../helpers/bootstrap-3'
import { Modal } from 'react-bootstrap'
import AccessibleModal from '../../../../frontend/js/shared/components/accessible-modal'
describe('AccessibleModal', function () {
it('renders a visible modal', function () {
const handleHide = cy.stub()
cy.mount(
Test
Some content
)
cy.findByRole('dialog').should('have.length', 1)
})
it('does not render a hidden modal', function () {
const handleHide = cy.stub()
cy.mount(
Test
Some content
)
cy.findByRole('dialog', { hidden: true }).should('have.length', 0)
})
})