Skip to content

Commit

Permalink
date test - needs main merge
Browse files Browse the repository at this point in the history
  • Loading branch information
CathLass committed Dec 9, 2024
1 parent db52644 commit cef6596
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ public async Task Get_WithPersonIdForPersonWithInductionStatusRequiringStartDate

// Assert
var doc = await AssertEx.HtmlResponseAsync(response);
//Assert.Contains(expectedWarning, doc.GetElementByTestId("induction-status-warning")!.TextContent); // to be covered by other test (below)
var inductionStatus = doc.GetElementByTestId("induction-status");
Assert.Contains(StatusStrings[setInductionStatus], inductionStatus!.TextContent);
var startDate = doc.GetElementByTestId("induction-start-date")!.Children[1].TextContent;
Expand All @@ -172,15 +171,14 @@ public async Task Get_WithPersonIdForPersonWithInductionStatusRequiringStartDate
Assert.NotNull(doc.GetAllElementsByTestId("induction-backlink"));
}

[Fact(Skip ="TestData setup doesn't allow null start date")]
[Fact]
public async Task Get_WithPersonIdForPersonWithInductionStatusRequiringStartDateButStartDateIsNull_DisplaysExpectedContent()
{
// Arrange
//var expectedWarning = "To change a teacher's induction status ";
var person = await TestData.CreatePersonAsync(
x => x
.WithQts()
.WithInductionStatus(InductionStatus.InProgress)
builder => builder
.WithQts()
.WithInductionStatus(InductionStatus.InProgress)
);

var request = new HttpRequestMessage(HttpMethod.Get, $"/persons/{person.ContactId}/induction");
Expand Down

0 comments on commit cef6596

Please sign in to comment.