@@ -336,6 +336,40 @@ describe('Settings: Change personal information', { testIsolation: true }, () =>
336336		cy . get ( 'a[href="tel:+498972101099701"]' ) . should ( 'be.visible' ) 
337337	} ) 
338338
339+ 	it ( 'Can set phone number with phone region' ,  ( )  =>  { 
340+ 		cy . contains ( 'label' ,  'Phone number' ) . scrollIntoView ( ) 
341+ 		inputForLabel ( 'Phone number' ) . type ( '{selectAll}0 40 428990' ) 
342+ 		inputForLabel ( 'Phone number' ) . should ( 'have.attr' ,  'class' ) . and ( 'contain' ,  '--error' ) 
343+ 
344+ 		cy . runOccCommand ( 'config:system:set default_phone_region --value DE' ) 
345+ 		cy . reload ( ) 
346+ 
347+ 		cy . contains ( 'label' ,  'Phone number' ) . scrollIntoView ( ) 
348+ 		inputForLabel ( 'Phone number' ) . type ( '{selectAll}0 40 428990' ) 
349+ 		handlePasswordConfirmation ( user . password ) 
350+ 
351+ 		cy . wait ( '@submitSetting' ) 
352+ 		cy . reload ( ) 
353+ 		inputForLabel ( 'Phone number' ) . should ( 'have.value' ,  '+4940428990' ) 
354+ 	} ) 
355+ 
356+ 	it ( 'Can reset phone number' ,  ( )  =>  { 
357+ 		cy . contains ( 'label' ,  'Phone number' ) . scrollIntoView ( ) 
358+ 		inputForLabel ( 'Phone number' ) . type ( '{selectAll}+49 40 428990' ) 
359+ 		handlePasswordConfirmation ( user . password ) 
360+ 
361+ 		cy . wait ( '@submitSetting' ) 
362+ 		cy . reload ( ) 
363+ 		inputForLabel ( 'Phone number' ) . should ( 'have.value' ,  '+4940428990' ) 
364+ 
365+ 		inputForLabel ( 'Phone number' ) . clear ( ) 
366+ 		handlePasswordConfirmation ( user . password ) 
367+ 
368+ 		cy . wait ( '@submitSetting' ) 
369+ 		cy . reload ( ) 
370+ 		inputForLabel ( 'Phone number' ) . should ( 'have.value' ,  '' ) 
371+ 	} ) 
372+ 
339373	it ( 'Can set Website and change its visibility' ,  ( )  =>  { 
340374		cy . contains ( 'label' ,  'Website' ) . scrollIntoView ( ) 
341375		// Check invalid input 
0 commit comments