subscription-dashboard.test.tsx 779 B

1234567891011121314151617181920212223
  1. import { expect } from 'chai'
  2. import { screen } from '@testing-library/react'
  3. import SubscriptionDashboard from '../../../../../../frontend/js/features/subscription/components/dashboard/subscription-dashboard'
  4. import {
  5. cleanUpContext,
  6. renderWithSubscriptionDashContext,
  7. } from '../../helpers/render-with-subscription-dash-context'
  8. describe('<SubscriptionDashboard />', function () {
  9. afterEach(function () {
  10. cleanUpContext()
  11. })
  12. describe('Free Plan', function () {
  13. it('does not render the "Get the most out of your" subscription text', function () {
  14. renderWithSubscriptionDashContext(<SubscriptionDashboard />)
  15. const text = screen.queryByText('Get the most out of your', {
  16. exact: false,
  17. })
  18. expect(text).to.be.null
  19. })
  20. })
  21. })