mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-26 21:52:07 +00:00
716f186fed
GitOrigin-RevId: 856c523a4ca34f8ccdc38067cef6fcd8a5c20250
17 lines
394 B
TypeScript
17 lines
394 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
|
|
url="/foo"
|
|
tooltip={{
|
|
id: 'test-tooltip',
|
|
text: 'This is a test',
|
|
}}
|
|
/>
|
|
)
|
|
|
|
cy.get('a[href="/foo"]').contains('This is a test')
|
|
})
|
|
})
|