free-plan.test.tsx 606 B

12345678910111213141516171819202122
  1. import { render, screen } from '@testing-library/react'
  2. import FreePlan from '../../../../../../frontend/js/features/subscription/components/dashboard/free-plan'
  3. import { SplitTestProvider } from '@/shared/context/split-test-context'
  4. describe('<FreePlan />', function () {
  5. it('renders free plan dash', function () {
  6. render(
  7. <SplitTestProvider>
  8. <FreePlan />
  9. </SplitTestProvider>
  10. )
  11. screen.getByText(
  12. 'You’re using our free plan. Upgrade to get the best Overleaf experience',
  13. {
  14. exact: false,
  15. }
  16. )
  17. screen.getByText('Upgrade now')
  18. })
  19. })