mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-11 05:16:36 -05:00
e60885aa88
Move CSS loading in Cypress to individual test spec files GitOrigin-RevId: 92bb5167cfa81b0bd54acc724efb23b397421ccb
18 lines
429 B
TypeScript
18 lines
429 B
TypeScript
import '../../helpers/bootstrap-3'
|
|
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')
|
|
})
|
|
})
|