@@ -425,7 +425,7 @@ test('typing into a controlled input works', () => {
425425
426426  userEvent . type ( element ,  '23' ) 
427427
428-   expect ( element . value ) . toBe ( '$23' ) 
428+   expect ( element ) . toHaveValue ( '$23' ) 
429429  expect ( getEventSnapshot ( ) ) . toMatchInlineSnapshot ( ` 
430430    Events fired on: input[value="$23"] 
431431
@@ -461,7 +461,7 @@ test('typing in the middle of a controlled input works', () => {
461461
462462  userEvent . type ( element ,  '1' ) 
463463
464-   expect ( element . value ) . toBe ( '$213' ) 
464+   expect ( element ) . toHaveValue ( '$213' ) 
465465  expect ( getEventSnapshot ( ) ) . toMatchInlineSnapshot ( ` 
466466    Events fired on: input[value="$213"] 
467467
@@ -503,7 +503,7 @@ test('ignored {backspace} in controlled input', () => {
503503  expect ( element . selectionEnd ) . toBe ( element . value . length ) 
504504  userEvent . type ( element ,  '4' ) 
505505
506-   expect ( element . value ) . toBe ( '$234' ) 
506+   expect ( element ) . toHaveValue ( '$234' ) 
507507  // the backslash in the inline snapshot is to escape the $ before {CURSOR} 
508508  expect ( getEventSnapshot ( ) ) . toMatchInlineSnapshot ( ` 
509509    Events fired on: input[value="$234"] 
@@ -1108,7 +1108,7 @@ test('can type into an input with type `time`', () => {
11081108  input[value="01:05"] - change 
11091109  input[value="01:05"] - keyup: 5 (53) 
11101110  ` ) 
1111-   expect ( element . value ) . toBe ( '01:05' ) 
1111+   expect ( element ) . toHaveValue ( '01:05' ) 
11121112} ) 
11131113
11141114test ( 'can type into an input with type `time` without ":"' ,  ( )  =>  { 
@@ -1149,7 +1149,7 @@ test('can type into an input with type `time` without ":"', () => {
11491149  input[value="01:05"] - change 
11501150  input[value="01:05"] - keyup: 5 (53) 
11511151  ` ) 
1152-   expect ( element . value ) . toBe ( '01:05' ) 
1152+   expect ( element ) . toHaveValue ( '01:05' ) 
11531153} ) 
11541154
11551155test ( 'can type more a number higher than 60 minutes into an input `time` and they are converted into 59 minutes' ,  ( )  =>  { 
@@ -1195,7 +1195,7 @@ test('can type more a number higher than 60 minutes into an input `time` and the
11951195    input[value="23:59"] - keyup: 0 (48) 
11961196  ` ) 
11971197
1198-   expect ( element . value ) . toBe ( '23:59' ) 
1198+   expect ( element ) . toHaveValue ( '23:59' ) 
11991199} ) 
12001200
12011201test ( 'can type letters into an input `time` and they are ignored' ,  ( )  =>  { 
@@ -1256,7 +1256,7 @@ test('can type letters into an input `time` and they are ignored', () => {
12561256    input[value="16:36"] - keyup: d (100) 
12571257  ` ) 
12581258
1259-   expect ( element . value ) . toBe ( '16:36' ) 
1259+   expect ( element ) . toHaveValue ( '16:36' ) 
12601260} ) 
12611261
12621262test ( 'can type a digit bigger in the hours section, bigger than 2 and it shows the time correctly' ,  ( )  =>  { 
@@ -1299,7 +1299,7 @@ test('can type a digit bigger in the hours section, bigger than 2 and it shows t
12991299    input[value="09:25"] - keyup: 5 (53) 
13001300  ` ) 
13011301
1302-   expect ( element . value ) . toBe ( '09:25' ) 
1302+   expect ( element ) . toHaveValue ( '09:25' ) 
13031303} ) 
13041304
13051305test ( 'can type two digits in the hours section, equals to 24 and it shows the hours as 23' ,  ( )  =>  { 
@@ -1345,7 +1345,7 @@ test('can type two digits in the hours section, equals to 24 and it shows the ho
13451345    input[value="23:52"] - keyup: 2 (50) 
13461346  ` ) 
13471347
1348-   expect ( element . value ) . toBe ( '23:52' ) 
1348+   expect ( element ) . toHaveValue ( '23:52' ) 
13491349} ) 
13501350
13511351test ( 'can type two digits in the hours section, bigger than 24 and less than 30, and it shows the hours as 23' ,  ( )  =>  { 
@@ -1391,7 +1391,7 @@ test('can type two digits in the hours section, bigger than 24 and less than 30,
13911391    input[value="23:52"] - keyup: 2 (50) 
13921392  ` ) 
13931393
1394-   expect ( element . value ) . toBe ( '23:52' ) 
1394+   expect ( element ) . toHaveValue ( '23:52' ) 
13951395} ) 
13961396
13971397test ( '{arrowdown} fires keyup/keydown events' ,  ( )  =>  { 
0 commit comments