2025-04-24 13:11:28 +08:00

18 lines
407 B
TypeScript

import BetaBadge from '../../../../frontend/js/shared/components/beta-badge'
describe('beta badge', function () {
it('renders the url and tooltip text', function () {
cy.mount(
<BetaBadge
link={{ href: '/foo' }}
tooltip={{
id: 'test-tooltip',
text: 'This is a test',
}}
/>
)
cy.get('a[href="/foo"]').contains('This is a test')
})
})