beta-badge.spec.tsx 442 B

123456789101112131415161718
  1. import '../../helpers/bootstrap-3'
  2. import BetaBadge from '../../../../frontend/js/shared/components/beta-badge'
  3. describe('beta badge', function () {
  4. it('renders the url and tooltip text', function () {
  5. cy.mount(
  6. <BetaBadge
  7. link={{ href: '/foo' }}
  8. tooltip={{
  9. id: 'test-tooltip',
  10. text: 'This is a test',
  11. }}
  12. />
  13. )
  14. cy.get('a[href="/foo"]').contains('This is a test')
  15. })
  16. })