@@ -22,6 +22,7 @@ import {
2222 DOMAIN_LAST_ENTERED_DEFAULT ,
2323 DOMAIN_NON_EDITABLE_DEFAULT ,
2424 INT_RANGE_URI ,
25+ MULTI_CHOICE_RANGE_URI ,
2526 PHILEVEL_FULL_PHI ,
2627 PHILEVEL_LIMITED_PHI ,
2728} from './constants' ;
@@ -226,4 +227,38 @@ describe('AdvancedSettings', () => {
226227 id = createFormInputId ( DOMAIN_FIELD_SHOWNINDETAILSVIEW , _domainIndex , _index ) ;
227228 expect ( document . querySelectorAll ( '#' + id ) ) . toHaveLength ( 1 ) ;
228229 } ) ;
230+
231+ test ( 'Multi-value Text Choice hidden properties' , async ( ) => {
232+ await act ( async ( ) => {
233+ renderWithAppContext (
234+ < AdvancedSettings
235+ { ...props }
236+ field = { DomainField . create ( { ...fieldProps , rangeURI : MULTI_CHOICE_RANGE_URI } ) }
237+ />
238+ ) ;
239+ } ) ;
240+
241+ let id = createFormInputId ( DOMAIN_FIELD_DEFAULT_VALUE_TYPE , _domainIndex , _index ) ;
242+ expect ( document . querySelectorAll ( '#' + id ) ) . toHaveLength ( 1 ) ;
243+ id = createFormInputId ( DOMAIN_FIELD_HIDDEN , _domainIndex , _index ) ;
244+ expect ( document . querySelectorAll ( '#' + id ) ) . toHaveLength ( 1 ) ;
245+ id = createFormInputId ( DOMAIN_FIELD_SHOWNININSERTVIEW , _domainIndex , _index ) ;
246+ expect ( document . querySelectorAll ( '#' + id ) ) . toHaveLength ( 1 ) ;
247+ id = createFormInputId ( DOMAIN_FIELD_SHOWNINUPDATESVIEW , _domainIndex , _index ) ;
248+ expect ( document . querySelectorAll ( '#' + id ) ) . toHaveLength ( 1 ) ;
249+ id = createFormInputId ( DOMAIN_FIELD_SHOWNINDETAILSVIEW , _domainIndex , _index ) ;
250+ expect ( document . querySelectorAll ( '#' + id ) ) . toHaveLength ( 1 ) ;
251+ id = createFormInputId ( DOMAIN_FIELD_PHI , _domainIndex , _index ) ;
252+ expect ( document . querySelectorAll ( '#' + id ) ) . toHaveLength ( 1 ) ;
253+ id = createFormInputId ( DOMAIN_FIELD_CONSTRAINT , _domainIndex , _index ) ;
254+ expect ( document . querySelectorAll ( '#' + id ) ) . toHaveLength ( 0 ) ;
255+ id = createFormInputId ( DOMAIN_FIELD_MEASURE , _domainIndex , _index ) ;
256+ expect ( document . querySelectorAll ( '#' + id ) ) . toHaveLength ( 0 ) ;
257+ id = createFormInputId ( DOMAIN_FIELD_DIMENSION , _domainIndex , _index ) ;
258+ expect ( document . querySelectorAll ( '#' + id ) ) . toHaveLength ( 0 ) ;
259+ id = createFormInputId ( DOMAIN_FIELD_MVENABLED , _domainIndex , _index ) ;
260+ expect ( document . querySelectorAll ( '#' + id ) ) . toHaveLength ( 0 ) ;
261+ id = createFormInputId ( DOMAIN_FIELD_RECOMMENDEDVARIABLE , _domainIndex , _index ) ;
262+ expect ( document . querySelectorAll ( '#' + id ) ) . toHaveLength ( 0 ) ;
263+ } ) ;
229264} ) ;
0 commit comments