@@ -927,7 +927,7 @@ describe('NumberField', function () {
927
927
userEvent . type ( textField , '(10)' ) ;
928
928
expect ( textField ) . toHaveAttribute ( 'value' , '(10)' ) ;
929
929
expect ( announce ) . toHaveBeenCalledTimes ( 3 ) ;
930
- expect ( announce ) . toHaveBeenLastCalledWith ( '−١٠٫٠٠ US$' , 'assertive' ) ;
930
+ expect ( announce ) . toHaveBeenLastCalledWith ( '− US$ 10.00 ' , 'assertive' ) ;
931
931
act ( ( ) => { textField . blur ( ) ; } ) ;
932
932
expect ( textField ) . toHaveAttribute ( 'value' , '(US$10.00)' ) ;
933
933
expect ( onChangeSpy ) . toHaveBeenCalledTimes ( 1 ) ;
@@ -979,7 +979,7 @@ describe('NumberField', function () {
979
979
it . each `
980
980
Name | props | locale | expected
981
981
${ 'US Euros' } | ${ { formatOptions : { style : 'currency' , currency : 'EUR' } } } | ${ 'en-US' } | ${ '€10.00' }
982
- ${ 'Arabic Euros' } | ${ { formatOptions : { style : 'currency' , currency : 'EUR' } } } | ${ 'ar-AE' } | ${ '١٠٫٠٠ € ' }
982
+ ${ 'Arabic Euros' } | ${ { formatOptions : { style : 'currency' , currency : 'EUR' } } } | ${ 'ar-AE' } | ${ '€ 10.00 ' }
983
983
${ 'French Euros' } | ${ { formatOptions : { style : 'currency' , currency : 'EUR' } } } | ${ 'fr-FR' } | ${ '10,00 €' }
984
984
${ 'US JPY' } | ${ { formatOptions : { style : 'currency' , currency : 'JPY' } } } | ${ 'en-US' } | ${ '¥10' }
985
985
` ( '$Name keeps formatted value on focus' , ( { props, locale, expected} ) => {
@@ -996,10 +996,10 @@ describe('NumberField', function () {
996
996
Name | props | locale | expected
997
997
${ 'US Euros' } | ${ { defaultValue : 10 , formatOptions : { style : 'currency' , currency : 'EUR' } } } | ${ 'en-US' } | ${ [ '€10.00' , '€11.00' , '€9.00' ] }
998
998
${ 'French Euros' } | ${ { defaultValue : 10 , formatOptions : { style : 'currency' , currency : 'EUR' } } } | ${ 'fr-FR' } | ${ [ '10,00 €' , '11,00 €' , '9,00 €' ] }
999
- ${ 'Arabic Euros' } | ${ { defaultValue : 10 , formatOptions : { style : 'currency' , currency : 'EUR' } } } | ${ 'ar-AE' } | ${ [ '١٠٫٠٠ € ' , '١١٫٠٠ € ' , '٩٫٠٠ € ' ] }
999
+ ${ 'Arabic Euros' } | ${ { defaultValue : 10 , formatOptions : { style : 'currency' , currency : 'EUR' } } } | ${ 'ar-AE' } | ${ [ '€ 10.00 ' , '€ 11.00 ' , '€ 9.00 ' ] }
1000
1000
${ 'US Euros negative' } | ${ { defaultValue : - 10 , formatOptions : { style : 'currency' , currency : 'EUR' } } } | ${ 'en-US' } | ${ [ '-€10.00' , '-€9.00' , '-€11.00' ] }
1001
1001
${ 'French Euros negative' } | ${ { defaultValue : - 10 , formatOptions : { style : 'currency' , currency : 'EUR' } } } | ${ 'fr-FR' } | ${ [ '-10,00 €' , '-9,00 €' , '-11,00 €' ] }
1002
- ${ 'Arabic Euros negative' } | ${ { defaultValue : - 10 , formatOptions : { style : 'currency' , currency : 'EUR' } } } | ${ 'ar-AE' } | ${ [ '\u061C-\u0661\u0660\u066B\u0660\u0660\xA0\u20AC ' , '\u061C-\u0669\u066B\u0660\u0660\xA0\u20AC ' , '\u061C-\u0661\u0661\u066B\u0660\u0660\xA0\u20AC ' ] }
1002
+ ${ 'Arabic Euros negative' } | ${ { defaultValue : - 10 , formatOptions : { style : 'currency' , currency : 'EUR' } } } | ${ 'ar-AE' } | ${ [ '-€ 10.00 ' , '-€ 9.00 ' , '-€ 11.00 ' ] }
1003
1003
` ( '$Name pressing increment & decrement keeps formatting' , ( { props, locale, expected} ) => {
1004
1004
let { textField, incrementButton, decrementButton} = renderNumberField ( { minValue : - 15 , ...props } , { locale} ) ;
1005
1005
@@ -1015,7 +1015,7 @@ describe('NumberField', function () {
1015
1015
Name | props | locale | expected
1016
1016
${ 'US Euros' } | ${ { formatOptions : { style : 'currency' , currency : 'EUR' } } } | ${ 'en-US' } | ${ [ '€10.00' , '€11.00' , '€9.00' , '€9.00' ] }
1017
1017
${ 'French Euros' } | ${ { formatOptions : { style : 'currency' , currency : 'EUR' } } } | ${ 'fr-FR' } | ${ [ '10,00 €' , '11,00 €' , '9,00 €' , '9,00 €' ] }
1018
- ${ 'Arabic Euros' } | ${ { formatOptions : { style : 'currency' , currency : 'EUR' } } } | ${ 'ar-AE' } | ${ [ '١٠٫٠٠ € ' , '١١٫٠٠ € ' , '٩٫٠٠ € ' , '٩٫٠٠ € ' ] }
1018
+ ${ 'Arabic Euros' } | ${ { formatOptions : { style : 'currency' , currency : 'EUR' } } } | ${ 'ar-AE' } | ${ [ '€ 10.00 ' , '€ 11.00 ' , '€ 9.00 ' , '€ 9.00 ' ] }
1019
1019
` ( '$Name pressing up arrow & down arrow keeps focus state formatting' , ( { props, locale, expected} ) => {
1020
1020
let { textField} = renderNumberField ( { defaultValue : 10 , onKeyDown : onKeyDownSpy , onKeyUp : onKeyUpSpy , ...props } , { locale} ) ;
1021
1021
0 commit comments