mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
d4057a7bcc
[web] Continue migration of change plan UI to React GitOrigin-RevId: 4f6176ac101ba3c57134cf5c86329e205f17ab23
23 lines
779 B
TypeScript
23 lines
779 B
TypeScript
import { expect } from 'chai'
|
|
import { screen } from '@testing-library/react'
|
|
import SubscriptionDashboard from '../../../../../../frontend/js/features/subscription/components/dashboard/subscription-dashboard'
|
|
import {
|
|
cleanUpContext,
|
|
renderWithSubscriptionDashContext,
|
|
} from '../../helpers/render-with-subscription-dash-context'
|
|
|
|
describe('<SubscriptionDashboard />', function () {
|
|
afterEach(function () {
|
|
cleanUpContext()
|
|
})
|
|
|
|
describe('Free Plan', function () {
|
|
it('does not render the "Get the most out of your" subscription text', function () {
|
|
renderWithSubscriptionDashContext(<SubscriptionDashboard />)
|
|
const text = screen.queryByText('Get the most out of your', {
|
|
exact: false,
|
|
})
|
|
expect(text).to.be.null
|
|
})
|
|
})
|
|
})
|