mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
5e9af2c15c
GitOrigin-RevId: f373f4215e5f25d14256008cf5f6582eb3124431
18 lines
430 B
TypeScript
18 lines
430 B
TypeScript
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')
|
|
})
|
|
})
|