Skip to content

Commit

Permalink
E2E tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CathLass committed Dec 31, 2024
1 parent 52554f2 commit 83f3378
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ public async Task EditInduction()
personBuilder => personBuilder
.WithQts()
.WithInductionStatus(inductionBuilder => inductionBuilder
.WithStatus(InductionStatus.InProgress)
.WithStartDate(setStartDate)
.WithStatus(InductionStatus.RequiredToComplete)
));
var personId = person.ContactId;

Expand All @@ -32,6 +31,7 @@ public async Task EditInduction()
await page.ClickContinueButtonAsync();

await page.AssertOnEditInductionStartDatePageAsync(person.PersonId);
await page.FillDateInputAsync(setStartDate);
await page.ClickContinueButtonAsync();

await page.AssertOnEditInductionCompletedDatePageAsync(person.PersonId);
Expand All @@ -52,8 +52,7 @@ public async Task EditInduction_NavigateBack()
personBuilder => personBuilder
.WithQts()
.WithInductionStatus(inductionBuilder => inductionBuilder
.WithStatus(InductionStatus.InProgress)
.WithStartDate(setStartDate)
.WithStatus(InductionStatus.RequiredToComplete)
));
var personId = person.ContactId;

Expand All @@ -69,6 +68,7 @@ public async Task EditInduction_NavigateBack()
await page.ClickContinueButtonAsync();

await page.AssertOnEditInductionStartDatePageAsync(person.PersonId);
await page.FillDateInputAsync(setStartDate);
await page.ClickContinueButtonAsync();

await page.AssertOnEditInductionCompletedDatePageAsync(person.PersonId);
Expand Down

0 comments on commit 83f3378

Please sign in to comment.