|
|
@@ -83,6 +83,33 @@ describe('<CurrentPlanWidget />', function () {
|
|
|
})
|
|
|
})
|
|
|
|
|
|
+ describe('free plan with Personal plan name', function () {
|
|
|
+ beforeEach(function () {
|
|
|
+ window.metaAttributesCache.set('ol-usersBestSubscription', {
|
|
|
+ type: 'individual',
|
|
|
+ plan: {
|
|
|
+ name: 'Free',
|
|
|
+ },
|
|
|
+ subscription: {
|
|
|
+ planCode: 'personal',
|
|
|
+ name: 'Free',
|
|
|
+ },
|
|
|
+ featuresPageURL: '/features',
|
|
|
+ })
|
|
|
+
|
|
|
+ render(<CurrentPlanWidget />)
|
|
|
+ })
|
|
|
+
|
|
|
+ it('shows text and tooltip on mouseover', async function () {
|
|
|
+ const link = screen.getByRole('link', {
|
|
|
+ name: /you’re on the free plan/i,
|
|
|
+ })
|
|
|
+ fireEvent.mouseOver(link)
|
|
|
+
|
|
|
+ await screen.findByRole('tooltip', { name: freePlanTooltipMessage })
|
|
|
+ })
|
|
|
+ })
|
|
|
+
|
|
|
describe('paid plan', function () {
|
|
|
describe('trial', function () {
|
|
|
const subscription = {
|