Skip to content

Commit fe7ece6

Browse files
committed
chore: linting fixes
1 parent d9cf0c8 commit fe7ece6

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

testing/e2e/src/pages/start-session.page.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,15 @@ export class StartSessionPage extends AppPage {
1616
this.successMessage = page.getByRole('heading', { name: 'Session Successfully Started' });
1717
}
1818

19-
async fillSessionForm(firstName: string, lastName: string, sex: string) {
20-
// Wait for the subjectFirstName field to appear after selecting PERSONAL_INFO
21-
const firstNameField = this.sessionForm.locator('[name="subjectFirstName"]');
22-
const lastNameField = this.sessionForm.locator('[name="subjectLastName"]');
19+
async fillCustomIdentifier(customIdentifier: string, sex: string) {
20+
const subjectIdField = this.sessionForm.locator('[name="subjectId"]');
2321
const dateOfBirthField = this.sessionForm.locator('[name="subjectDateOfBirth"]');
2422
const sexSelector = this.sessionForm.locator('[name="subjectSex"]');
2523
const sessionTypeSelector = this.sessionForm.locator('[name="sessionType"]');
2624
const sessionDate = this.sessionForm.locator('[name="sessionDate"]');
2725

28-
await firstNameField.waitFor({ state: 'visible' });
29-
await firstNameField.fill(firstName);
30-
31-
await lastNameField.waitFor({ state: 'visible' });
32-
await lastNameField.fill(lastName);
26+
await subjectIdField.waitFor({ state: 'visible' });
27+
await subjectIdField.fill(customIdentifier);
3328

3429
await dateOfBirthField.waitFor({ state: 'visible' });
3530
await dateOfBirthField.fill('1990-01-01');
@@ -42,15 +37,20 @@ export class StartSessionPage extends AppPage {
4237
await sessionDate.fill('2026-01-01');
4338
}
4439

45-
async fillCustomIdentifier(customIdentifier: string, sex: string) {
46-
const subjectIdField = this.sessionForm.locator('[name="subjectId"]');
40+
async fillSessionForm(firstName: string, lastName: string, sex: string) {
41+
// Wait for the subjectFirstName field to appear after selecting PERSONAL_INFO
42+
const firstNameField = this.sessionForm.locator('[name="subjectFirstName"]');
43+
const lastNameField = this.sessionForm.locator('[name="subjectLastName"]');
4744
const dateOfBirthField = this.sessionForm.locator('[name="subjectDateOfBirth"]');
4845
const sexSelector = this.sessionForm.locator('[name="subjectSex"]');
4946
const sessionTypeSelector = this.sessionForm.locator('[name="sessionType"]');
5047
const sessionDate = this.sessionForm.locator('[name="sessionDate"]');
5148

52-
await subjectIdField.waitFor({ state: 'visible' });
53-
await subjectIdField.fill(customIdentifier);
49+
await firstNameField.waitFor({ state: 'visible' });
50+
await firstNameField.fill(firstName);
51+
52+
await lastNameField.waitFor({ state: 'visible' });
53+
await lastNameField.fill(lastName);
5454

5555
await dateOfBirthField.waitFor({ state: 'visible' });
5656
await dateOfBirthField.fill('1990-01-01');

0 commit comments

Comments
 (0)