2023-01-18 09:38:51 -05:00
|
|
|
import { expect } from 'chai'
|
2023-02-07 10:38:20 -05:00
|
|
|
import { screen } from '@testing-library/react'
|
2023-01-18 09:38:35 -05:00
|
|
|
import SubscriptionDashboard from '../../../../../../frontend/js/features/subscription/components/dashboard/subscription-dashboard'
|
2023-02-07 10:38:20 -05:00
|
|
|
import {
|
|
|
|
cleanUpContext,
|
|
|
|
renderWithSubscriptionDashContext,
|
|
|
|
} from '../../helpers/render-with-subscription-dash-context'
|
2023-01-18 09:38:35 -05:00
|
|
|
|
|
|
|
describe('<SubscriptionDashboard />', function () {
|
|
|
|
afterEach(function () {
|
2023-02-07 10:38:20 -05:00
|
|
|
cleanUpContext()
|
2023-01-18 09:38:35 -05:00
|
|
|
})
|
|
|
|
|
2023-01-18 09:38:51 -05:00
|
|
|
describe('Free Plan', function () {
|
|
|
|
it('does not render the "Get the most out of your" subscription text', function () {
|
2023-02-07 10:38:20 -05:00
|
|
|
renderWithSubscriptionDashContext(<SubscriptionDashboard />)
|
2023-01-18 09:38:51 -05:00
|
|
|
const text = screen.queryByText('Get the most out of your', {
|
|
|
|
exact: false,
|
|
|
|
})
|
|
|
|
expect(text).to.be.null
|
|
|
|
})
|
2023-01-18 09:38:35 -05:00
|
|
|
})
|
|
|
|
})
|