diff --git a/TeachingRecordSystem/tests/TeachingRecordSystem.SupportUi.EndToEndTests/JourneyTests/InductionTests.cs b/TeachingRecordSystem/tests/TeachingRecordSystem.SupportUi.EndToEndTests/JourneyTests/InductionTests.cs index 47f5eef2a..ec7547f34 100644 --- a/TeachingRecordSystem/tests/TeachingRecordSystem.SupportUi.EndToEndTests/JourneyTests/InductionTests.cs +++ b/TeachingRecordSystem/tests/TeachingRecordSystem.SupportUi.EndToEndTests/JourneyTests/InductionTests.cs @@ -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; @@ -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); @@ -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; @@ -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);