diff --git a/EssentialCSharp.Web.Tests/FunctionalTests.cs b/EssentialCSharp.Web.Tests/FunctionalTests.cs index 31aa723e..1defcb2c 100644 --- a/EssentialCSharp.Web.Tests/FunctionalTests.cs +++ b/EssentialCSharp.Web.Tests/FunctionalTests.cs @@ -51,5 +51,10 @@ public async Task WhenTheApplicationStarts_NonExistingPage_GivesCorrectStatusCod using HttpResponseMessage response = await client.GetAsync("/non-existing-page1234"); await Assert.That(response.StatusCode).IsEqualTo(HttpStatusCode.NotFound); + + string content = await response.Content.ReadAsStringAsync(); + await Assert.That(content).Contains("Go Home"); + await Assert.That(content).Contains("Go Back"); + await Assert.That(content).Contains("Browse Chapters"); } -} \ No newline at end of file +} diff --git a/EssentialCSharp.Web/Views/Home/Error.cshtml b/EssentialCSharp.Web/Views/Home/Error.cshtml index 46371eb6..bb1aa3cd 100644 --- a/EssentialCSharp.Web/Views/Home/Error.cshtml +++ b/EssentialCSharp.Web/Views/Home/Error.cshtml @@ -16,6 +16,7 @@ }
Go Home + Browse Chapters