free-plan.test.tsx 603 B

12345678910111213141516171819202122232425
  1. import { render, screen } from '@testing-library/react'
  2. import FreePlan from '../../../../../../frontend/js/features/subscription/components/dashboard/free-plan'
  3. describe('<FreePlan />', function () {
  4. beforeEach(function () {
  5. window.metaAttributesCache = new Map()
  6. })
  7. afterEach(function () {
  8. window.metaAttributesCache = new Map()
  9. })
  10. it('renders free plan dash', function () {
  11. render(<FreePlan />)
  12. screen.getByText(
  13. 'You are on the Overleaf Free plan. Upgrade to access these',
  14. {
  15. exact: false,
  16. }
  17. )
  18. screen.getByText('Upgrade Now')
  19. })
  20. })