mirror of
https://github.com/overleaf/overleaf.git
synced 2024-09-23 02:55:13 -04:00
c8ef5e6f65
[web] Migrate institution memberships dash to React GitOrigin-RevId: 75bb8e7d7338418733a836a8e654fe5b0a9fceff
29 lines
909 B
TypeScript
29 lines
909 B
TypeScript
import { render, screen } from '@testing-library/react'
|
|
import SubscriptionDashboard from '../../../../../../frontend/js/features/subscription/components/dashboard/subscription-dashboard'
|
|
|
|
describe('<SubscriptionDashboard />', function () {
|
|
beforeEach(function () {
|
|
window.metaAttributesCache = new Map()
|
|
window.metaAttributesCache.set('ol-currentInstitutionsWithLicence', [
|
|
{
|
|
id: 9258,
|
|
name: 'Test University',
|
|
commonsAccount: true,
|
|
isUniversity: true,
|
|
confirmed: true,
|
|
ssoBeta: false,
|
|
ssoEnabled: false,
|
|
maxConfirmationMonths: 6,
|
|
},
|
|
])
|
|
})
|
|
|
|
afterEach(function () {
|
|
window.metaAttributesCache = new Map()
|
|
})
|
|
|
|
it('renders the premium features text when a user has a subscription', function () {
|
|
render(<SubscriptionDashboard />)
|
|
screen.getByText('Get the most out of your', { exact: false })
|
|
})
|
|
})
|