File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,9 +28,15 @@ test.describe('start session', () => {
2828 await expect ( lastNameField ) . toHaveValue ( 'lastNameTest' ) ;
2929
3030 const dobField = startSessionPage . sessionForm . locator ( '[name="subjectDateOfBirth"]' ) ;
31- await expect ( dobField ) . toHaveValue ( '01 -01-1990 ' ) ;
31+ await expect ( dobField ) . toHaveValue ( '1990 -01-01 ' ) ;
3232
3333 const sexField = startSessionPage . sessionForm . locator ( '[name="subjectSex"]' ) ;
3434 await expect ( sexField ) . toHaveValue ( 'MALE' ) ;
35+
36+ const sessionTypeSelector = startSessionPage . sessionForm . locator ( '[name="sessionType"]' ) ;
37+ await expect ( sessionTypeSelector ) . toHaveValue ( 'RETROSPECTIVE' ) ;
38+
39+ const sessionDate = startSessionPage . sessionForm . locator ( '[name="sessionDate"]' ) ;
40+ await expect ( sessionDate ) . toHaveValue ( '2026-01-01' ) ;
3541 } ) ;
3642} ) ;
Original file line number Diff line number Diff line change @@ -20,16 +20,24 @@ export class StartSessionPage extends AppPage {
2020 const lastNameField = this . sessionForm . locator ( '[name="subjectLastName"]' ) ;
2121 const dateOfBirthField = this . sessionForm . locator ( '[name="subjectDateOfBirth"]' ) ;
2222 const sexSelector = this . sessionForm . locator ( '[name="subjectSex"]' ) ;
23+ const sessionTypeSelector = this . sessionForm . locator ( '[name="sessionType"]' ) ;
24+ const sessionDate = this . sessionForm . locator ( '[name="sessionDate"]' ) ;
25+
2326 await firstNameField . waitFor ( { state : 'visible' } ) ;
2427 await firstNameField . fill ( firstName ) ;
2528
2629 await lastNameField . waitFor ( { state : 'visible' } ) ;
2730 await lastNameField . fill ( lastName ) ;
2831
2932 await dateOfBirthField . waitFor ( { state : 'visible' } ) ;
30- await dateOfBirthField . fill ( '01 -01-1990 ' ) ;
33+ await dateOfBirthField . fill ( '1990 -01-01 ' ) ;
3134
3235 await sexSelector . selectOption ( sex ) ;
36+
37+ await sessionTypeSelector . selectOption ( 'Retrospective' ) ;
38+
39+ await sessionDate . waitFor ( { state : 'visible' } ) ;
40+ await sessionDate . fill ( '2026-01-01' ) ;
3341 }
3442
3543 async selectIdentificationMethod ( methodName : string ) {
You can’t perform that action at this time.
0 commit comments