| 12345678910111213141516171819202122232425262728 |
- import { expect } from 'chai'
- import { render, screen } from '@testing-library/react'
- import SubscriptionDashboard from '../../../../../../frontend/js/features/subscription/components/dashboard/subscription-dashboard'
- import { SubscriptionDashboardProvider } from '../../../../../../frontend/js/features/subscription/context/subscription-dashboard-context'
- describe('<SubscriptionDashboard />', function () {
- beforeEach(function () {
- window.metaAttributesCache = new Map()
- })
- afterEach(function () {
- window.metaAttributesCache = new Map()
- })
- describe('Free Plan', function () {
- it('does not render the "Get the most out of your" subscription text', function () {
- render(
- <SubscriptionDashboardProvider>
- <SubscriptionDashboard />
- </SubscriptionDashboardProvider>
- )
- const text = screen.queryByText('Get the most out of your', {
- exact: false,
- })
- expect(text).to.be.null
- })
- })
- })
|