overleaf/services/web/test/frontend/features/subscription/components/dashboard/subscription-dashboard.test.tsx
Jessica Lawshe d4057a7bcc Merge pull request #11602 from overleaf/jel-react-personal-subscription-dash-pt-6
[web] Continue migration of change plan UI to React

GitOrigin-RevId: 4f6176ac101ba3c57134cf5c86329e205f17ab23
2023-02-08 09:06:37 +00:00

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
})
})
})