File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ TERMS_OF_SERVICE_URL=null
12
12
PRIVACY_POLICY_URL = null
13
13
SUPPORT_EMAIL = null
14
14
STUDIO_BASE_URL = http://localhost:18010
15
- SHOW_ACCESSIBILITY_PAGE = false
15
+ ENABLE_ACCESSIBILITY_PAGE = false
16
16
ORDER_HISTORY_URL = localhost:1996/orders
17
17
REFRESH_ACCESS_TOKEN_ENDPOINT = http://localhost:18000/login_refresh
18
18
SEGMENT_KEY = null
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ ensureConfig([
22
22
'SUPPORT_EMAIL' ,
23
23
'SITE_NAME' ,
24
24
'STUDIO_BASE_URL' ,
25
- 'SHOW_ACCESSIBILITY_PAGE ' ,
25
+ 'ENABLE_ACCESSIBILITY_PAGE ' ,
26
26
] , 'Studio Footer component' ) ;
27
27
28
28
const StudioFooter = ( {
@@ -105,7 +105,7 @@ const StudioFooter = ({
105
105
{ intl . formatMessage ( messages . privacyPolicyLinkLabel ) }
106
106
</ Hyperlink >
107
107
) }
108
- { config . SHOW_ACCESSIBILITY_PAGE === 'true' && (
108
+ { config . ENABLE_ACCESSIBILITY_PAGE === 'true' && (
109
109
< Hyperlink
110
110
destination = { `${ config . STUDIO_BASE_URL } /accessibility` }
111
111
data-testid = "accessibilityRequest"
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const config = {
15
15
SUPPORT_EMAIL : process . env . SUPPORT_EMAIL ,
16
16
SITE_NAME : process . env . SITE_NAME ,
17
17
STUDIO_BASE_URL : process . env . STUDIO_BASE_URL ,
18
- SHOW_ACCESSIBILITY_PAGE : process . env . SHOW_ACCESSIBILITY_PAGE ,
18
+ ENABLE_ACCESSIBILITY_PAGE : process . env . ENABLE_ACCESSIBILITY_PAGE ,
19
19
} ;
20
20
21
21
let currentConfig = config ;
@@ -111,7 +111,7 @@ describe('Footer', () => {
111
111
expect ( screen . queryByTestId ( 'accessibilityRequest' ) ) . toBeNull ( ) ;
112
112
} ) ;
113
113
it ( 'should show accessibilty request link' , ( ) => {
114
- render ( < Component updateVariable = { [ 'SHOW_ACCESSIBILITY_PAGE ' , 'true' ] } /> ) ;
114
+ render ( < Component updateVariable = { [ 'ENABLE_ACCESSIBILITY_PAGE ' , 'true' ] } /> ) ;
115
115
expect ( screen . getByText ( 'LMS' ) ) . toBeVisible ( ) ;
116
116
expect ( screen . queryByTestId ( 'termsOfService' ) ) . toBeNull ( ) ;
117
117
expect ( screen . queryByTestId ( 'privacyPolicy' ) ) . toBeNull ( ) ;
Original file line number Diff line number Diff line change @@ -19,3 +19,4 @@ process.env.LOGO_URL = 'https://edx-cdn.org/v3/default/logo.svg';
19
19
process . env . LOGO_TRADEMARK_URL = 'https://edx-cdn.org/v3/default/logo-trademark.svg' ;
20
20
process . env . LOGO_WHITE_URL = 'https://edx-cdn.org/v3/default/logo-white.svg' ;
21
21
process . env . FAVICON_URL = 'https://edx-cdn.org/v3/default/favicon.ico' ;
22
+ process . env . ENABLE_ACCESSIBILITY_PAGE = 'false' ;
You can’t perform that action at this time.
0 commit comments