overleaf/services/web/test/frontend/components/shared/beta-badge.spec.js

19 lines
430 B
JavaScript
Raw Normal View History

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