2023-01-18 09:38:51 -05:00
|
|
|
import { expect } from 'chai'
|
2023-01-18 09:38:35 -05:00
|
|
|
import { render, screen } from '@testing-library/react'
|
|
|
|
import SubscriptionDashboard from '../../../../../../frontend/js/features/subscription/components/dashboard/subscription-dashboard'
|
2023-01-26 12:01:54 -05:00
|
|
|
import { SubscriptionDashboardProvider } from '../../../../../../frontend/js/features/subscription/context/subscription-dashboard-context'
|
2023-01-18 09:38:35 -05:00
|
|
|
|
|
|
|
describe('<SubscriptionDashboard />', function () {
|
|
|
|
beforeEach(function () {
|
|
|
|
window.metaAttributesCache = new Map()
|
|
|
|
})
|
|
|
|
|
|
|
|
afterEach(function () {
|
|
|
|
window.metaAttributesCache = new Map()
|
|
|
|
})
|
|
|
|
|
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-01-26 12:01:54 -05:00
|
|
|
render(
|
|
|
|
<SubscriptionDashboardProvider>
|
|
|
|
<SubscriptionDashboard />
|
|
|
|
</SubscriptionDashboardProvider>
|
|
|
|
)
|
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
|
|
|
})
|
|
|
|
})
|