beta-badge.spec.tsx 407 B

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