diff --git a/.env.development b/.env.development index f35084803..8dddff8c5 100644 --- a/.env.development +++ b/.env.development @@ -12,7 +12,7 @@ TERMS_OF_SERVICE_URL=null PRIVACY_POLICY_URL=null SUPPORT_EMAIL=null STUDIO_BASE_URL=http://localhost:18010 -SHOW_ACCESSIBILITY_PAGE=false +ENABLE_ACCESSIBILITY_PAGE=false ORDER_HISTORY_URL=localhost:1996/orders REFRESH_ACCESS_TOKEN_ENDPOINT=http://localhost:18000/login_refresh SEGMENT_KEY=null diff --git a/src/components/studio-footer/StudioFooter.jsx b/src/components/studio-footer/StudioFooter.jsx index 6627e231f..81add577d 100644 --- a/src/components/studio-footer/StudioFooter.jsx +++ b/src/components/studio-footer/StudioFooter.jsx @@ -22,7 +22,7 @@ ensureConfig([ 'SUPPORT_EMAIL', 'SITE_NAME', 'STUDIO_BASE_URL', - 'SHOW_ACCESSIBILITY_PAGE', + 'ENABLE_ACCESSIBILITY_PAGE', ], 'Studio Footer component'); const StudioFooter = ({ @@ -105,7 +105,7 @@ const StudioFooter = ({ {intl.formatMessage(messages.privacyPolicyLinkLabel)} )} - {config.SHOW_ACCESSIBILITY_PAGE === 'true' && ( + {config.ENABLE_ACCESSIBILITY_PAGE === 'true' && ( { expect(screen.queryByTestId('accessibilityRequest')).toBeNull(); }); it('should show accessibilty request link', () => { - render(); + render(); expect(screen.getByText('LMS')).toBeVisible(); expect(screen.queryByTestId('termsOfService')).toBeNull(); expect(screen.queryByTestId('privacyPolicy')).toBeNull(); diff --git a/src/setupTest.js b/src/setupTest.js index 1c76812ed..b47c955f3 100644 --- a/src/setupTest.js +++ b/src/setupTest.js @@ -19,3 +19,4 @@ process.env.LOGO_URL = 'https://edx-cdn.org/v3/default/logo.svg'; process.env.LOGO_TRADEMARK_URL = 'https://edx-cdn.org/v3/default/logo-trademark.svg'; process.env.LOGO_WHITE_URL = 'https://edx-cdn.org/v3/default/logo-white.svg'; process.env.FAVICON_URL = 'https://edx-cdn.org/v3/default/favicon.ico'; +process.env.ENABLE_ACCESSIBILITY_PAGE = 'false';