@@ -62,10 +62,12 @@ const playFormComponent = async ({
6262 const firstName = canvas . getByLabelText ( "First name" ) ;
6363 const lastName = canvas . getByLabelText ( "Last name" ) ;
6464 const age = canvas . getByLabelText ( "Age" ) ;
65- const schoolYear = canvas . getByLabelText ( "Select school year" ) ;
65+ const schoolYear = canvas . getByLabelText ( "Select school year" , {
66+ exact : false ,
67+ } ) ;
6668 const address = canvas . getByLabelText ( "Address" ) ;
6769 const address_addition = canvas . getByLabelText ( "Address (addition)" ) ;
68- const dayOfMonth = canvas . getByLabelText ( "day of month" ) ;
70+ const dateOfBirth = canvas . getByLabelText ( "Date of birth" , { exact : false } ) ;
6971 const english = canvas . getByLabelText ( "English" ) ;
7072 const math = canvas . getByLabelText ( "Math" ) ;
7173 const yes = canvas . getByLabelText ( "Yes" ) ;
@@ -116,10 +118,10 @@ const playFormComponent = async ({
116118 typedResults ? [ "Keizersgracht 117" , 2 ] : [ "Keizersgracht 117" , "2" ] ,
117119 ) ;
118120
119- await userEvent . clear ( dayOfMonth ) ;
120- await userEvent . type ( dayOfMonth , "15092023" , { delay : 60 } ) ;
121- await userEvent . type ( dayOfMonth , "{enter}" ) ;
122- await expect ( dayOfMonth ) . toHaveValue ( "15" ) ;
121+ await userEvent . clear ( dateOfBirth ) ;
122+ await userEvent . type ( dateOfBirth , "15092023" , { delay : 60 } ) ;
123+ await userEvent . type ( dateOfBirth , "{enter}" ) ;
124+ await expect ( dateOfBirth ) . toHaveValue ( "15" ) ;
123125 await expectLogToBe (
124126 canvasElement ,
125127 "date_of_birth" ,
0 commit comments