Skip to content

removed some text in checkanswerscontroller #3832

removed some text in checkanswerscontroller

removed some text in checkanswerscontroller #3832

GitHub Actions / DotNET Tests failed Feb 26, 2025 in 0s

679 passed, 1 failed and 0 skipped

Tests failed

Report Passed Failed Skipped Time
tests/Dfe.PlanTech.Application.UnitTests/TestResults/test-results.trx 126✅ 7s
tests/Dfe.PlanTech.Domain.UnitTests/TestResults/test-results.trx 18✅ 7s
tests/Dfe.PlanTech.Infrastructure.Contentful.UnitTests/TestResults/test-results.trx 75✅ 5s
tests/Dfe.PlanTech.Infrastructure.Redis.UnitTests/TestResults/test-results.trx 63✅ 11s
tests/Dfe.PlanTech.Infrastructure.ServiceBus.UnitTests/TestResults/test-results.trx 17✅ 6s
tests/Dfe.PlanTech.Infrastructure.SignIn.UnitTests/TestResults/test-results.trx 45✅ 7s
tests/Dfe.PlanTech.UnitTests.Shared/TestResults/test-results.trx 911ms
tests/Dfe.PlanTech.Web.UnitTests/TestResults/test-results.trx 335✅ 1❌ 13s

✅ tests/Dfe.PlanTech.Application.UnitTests/TestResults/test-results.trx

126 tests were completed in 7s with 126 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Dfe.PlanTech.Application.Cookie.Service.Tests.CookiesCleanerTests 1✅ 250ms
Dfe.PlanTech.Application.UnitTests.Content.Commands.WriteCmsWebhookToQueueCommandTests 3✅ 55ms
Dfe.PlanTech.Application.UnitTests.Content.Queries.GetContentSupportPageQueryTests 3✅ 64ms
Dfe.PlanTech.Application.UnitTests.Content.Queries.GetEntityFromContentfulQueryTests 1✅ 18ms
Dfe.PlanTech.Application.UnitTests.Content.Queries.GetNavigationQueryTests 4✅ 33ms
Dfe.PlanTech.Application.UnitTests.Content.Queries.GetPageQueryTests 4✅ 56ms
Dfe.PlanTech.Application.UnitTests.Content.Queries.GetSubTopicRecommendationQueryTests 9✅ 280ms
Dfe.PlanTech.Application.UnitTests.Cookie.Service.CookieServiceTests 9✅ 142ms
Dfe.PlanTech.Application.UnitTests.Core.UrlHistoryTests 2✅ 20ms
Dfe.PlanTech.Application.UnitTests.Establishments.Commands.CreateEstablishmentCommandTests 3✅ 13ms
Dfe.PlanTech.Application.UnitTests.Establishments.EstablishmentTests 11✅ 257ms
Dfe.PlanTech.Application.UnitTests.Establishments.Queries.GetEstablishmentIdQueryTests 3✅ 105ms
Dfe.PlanTech.Application.UnitTests.Persistence.Commands.WebhookMessageProcessorTests 2✅ 190ms
Dfe.PlanTech.Application.UnitTests.Persistence.GetEntitiesOptionsTests 8✅ 54ms
Dfe.PlanTech.Application.UnitTests.Questionnaire.Queries.GetNextUnansweredQuestionQueryTests 4✅ 88ms
Dfe.PlanTech.Application.UnitTests.Questionnaire.Queries.GetSectionQueryTests 4✅ 216ms
Dfe.PlanTech.Application.UnitTests.QuestionnaireCacherTests 2✅ 15ms
Dfe.PlanTech.Application.UnitTests.Submissions.CalculateMaturityCommandTests 2✅ 23ms
Dfe.PlanTech.Application.UnitTests.Submissions.Commands.ProcessSubmissionResponsesDtoCommandTests 2✅ 14ms
Dfe.PlanTech.Application.UnitTests.Submissions.Commands.SubmitAnswerCommandTests 4✅ 75ms
Dfe.PlanTech.Application.UnitTests.Submissions.Queries.CheckAnswersOrNextQuestionCheckerTests 7✅ 47ms
Dfe.PlanTech.Application.UnitTests.Submissions.Queries.GetLatestResponsesQueryTests 7✅ 318ms
Dfe.PlanTech.Application.UnitTests.Submissions.Queries.GetSubmissionStatusesQueryTests 5✅ 121ms
Dfe.PlanTech.Application.UnitTests.Submissions.Queries.SectionCompleteStatusCheckerTests 4✅ 12ms
Dfe.PlanTech.Application.UnitTests.Submissions.Queries.SectionNotStartedStatusCheckerTests 4✅ 199ms
Dfe.PlanTech.Application.UnitTests.Submissions.Queries.SubmissionStatusProcessorTests 3✅ 43ms
Dfe.PlanTech.Application.UnitTests.TemplateTest 1✅ 0ms
Dfe.PlanTech.Application.UnitTests.Users.Commands.CreateUserCommandTests 3✅ 2ms
Dfe.PlanTech.Application.UnitTests.Users.Commands.RecordUserSigninCommandTests 8✅ 106ms
Dfe.PlanTech.Application.UnitTests.Users.Queries.GetUserIdQueryTests 3✅ 15ms

✅ tests/Dfe.PlanTech.Domain.UnitTests/TestResults/test-results.trx

18 tests were completed in 7s with 18 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Dfe.PlanTech.Domain.UnitTests.Database.DatabaseRetryOptionsTests 4✅ 19ms
Dfe.PlanTech.Domain.UnitTests.Helpers.DateTimeFormatterTests 7✅ 346ms
Dfe.PlanTech.Domain.UnitTests.Helpers.TimeZoneHelpersTests 3✅ 338ms
Dfe.PlanTech.Domain.UnitTests.LockOwnerUnitTests 1✅ 13ms
Dfe.PlanTech.Domain.UnitTests.RandomNumberTests 3✅ 12ms

✅ tests/Dfe.PlanTech.Infrastructure.Contentful.UnitTests/TestResults/test-results.trx

75 tests were completed in 5s with 75 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Dfe.PlanTech.Infrastructure.Contentful.UnitTests.Content.Renderers.Models.PartRenderers.HeadingRendererTests 19✅ 6ms
Dfe.PlanTech.Infrastructure.Contentful.UnitTests.Content.Renderers.Models.PartRenderers.HyperlinkRendererTests 6✅ 5ms
Dfe.PlanTech.Infrastructure.Contentful.UnitTests.Content.Renderers.Models.PartRenderers.ListItemRendererTests 3✅ 1ms
Dfe.PlanTech.Infrastructure.Contentful.UnitTests.Content.Renderers.Models.PartRenderers.OrderedListRendererTests 3✅ 14ms
Dfe.PlanTech.Infrastructure.Contentful.UnitTests.Content.Renderers.Models.PartRenderers.ParagraphRendererTests 4✅ 1ms
Dfe.PlanTech.Infrastructure.Contentful.UnitTests.Content.Renderers.Models.PartRenderers.TableRendererTests 2✅ 9ms
Dfe.PlanTech.Infrastructure.Contentful.UnitTests.Content.Renderers.Models.PartRenderers.TextRendererTests 5✅ 15ms
Dfe.PlanTech.Infrastructure.Contentful.UnitTests.Content.Renderers.Models.PartRenderers.UnorderedListRendererTests 3✅ 1ms
Dfe.PlanTech.Infrastructure.Contentful.UnitTests.Content.Renderers.Models.RichTextRendererTests 2✅ 168ms
Dfe.PlanTech.Infrastructure.Contentful.UnitTests.Persistence.CachedContentfulRepositoryTests 3✅ 132ms
Dfe.PlanTech.Infrastructure.Contentful.UnitTests.Persistence.ContentfulRepositoryTests 10✅ 165ms
Dfe.PlanTech.Infrastructure.Contentful.UnitTests.Persistence.EntityResolverTests 3✅ 43ms
Dfe.PlanTech.Infrastructure.Contentful.UnitTests.QueryBuilderByContentTypeTests 4✅ 8ms
Dfe.PlanTech.Infrastructure.Contentful.UnitTests.QueryBuilderSelectTests 2✅ 15ms
Dfe.PlanTech.Infrastructure.Contentful.UnitTests.QueryBuilderWithQueryTests 4✅ 24ms
Dfe.PlanTech.Infrastructure.Contentful.UnitTests.Serializers.DependencyInjectionContractResolverTests 2✅ 58ms

✅ tests/Dfe.PlanTech.Infrastructure.Redis.UnitTests/TestResults/test-results.trx

63 tests were completed in 11s with 63 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Dfe.PlanTech.Infrastructure.Redis.UnitTests.ContentComponentJsonExtensionsTests 2✅ 37ms
Dfe.PlanTech.Infrastructure.Redis.UnitTests.GuardTests 21✅ 34ms
Dfe.PlanTech.Infrastructure.Redis.UnitTests.GZipRedisValueCompressorTests 8✅ 105ms
Dfe.PlanTech.Infrastructure.Redis.UnitTests.RedisCacheTests 18✅ 658ms
Dfe.PlanTech.Infrastructure.Redis.UnitTests.RedisDependencyManagerTests 3✅ 459ms
Dfe.PlanTech.Infrastructure.Redis.UnitTests.RedisLockProviderUnitTests 11✅ 5s

✅ tests/Dfe.PlanTech.Infrastructure.ServiceBus.UnitTests/TestResults/test-results.trx

17 tests were completed in 6s with 17 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Dfe.PlanTech.Infrastructure.ServiceBus.UnitTests.ContentfulServiceBusProcessorTests 7✅ 261ms
Dfe.PlanTech.Infrastructure.ServiceBus.UnitTests.QueueWriterTests 2✅ 160ms
Dfe.PlanTech.Infrastructure.ServiceBus.UnitTests.ServiceBusResultProcessorTests 6✅ 28ms
Dfe.PlanTech.Infrastructure.ServiceBus.UnitTests.Utils.MessageRetryHandlerTests 2✅ 133ms

✅ tests/Dfe.PlanTech.Infrastructure.SignIn.UnitTests/TestResults/test-results.trx

45 tests were completed in 7s with 45 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Dfe.PlanTech.Infrastructure.SignIns.UnitTests.DfeOpenIdConnectEventsTests 37✅ 657ms
Dfe.PlanTech.Infrastructure.SignIns.UnitTests.UserClaimsExtensionsTests 8✅ 227ms

✅ tests/Dfe.PlanTech.UnitTests.Shared/TestResults/test-results.trx

No tests found

❌ tests/Dfe.PlanTech.Web.UnitTests/TestResults/test-results.trx

336 tests were completed in 13s with 335 passed, 1 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Dfe.ContentSupport.Web.Tests.Controllers.ContentControllerTests 5✅ 152ms
Dfe.PlanTech.Web.UnitTests.Authorisation.ApiKeyAuthorisationFilterTests 8✅ 12ms
Dfe.PlanTech.Web.UnitTests.Authorisation.PageModelAuthorisationPolicyTests 9✅ 73ms
Dfe.PlanTech.Web.UnitTests.Authorisation.SignedRequestAuthorisationPolicyTests 5✅ 138ms
Dfe.PlanTech.Web.UnitTests.Background.BackgroundTaskHostedServiceTests 3✅ 97ms
Dfe.PlanTech.Web.UnitTests.BaseTaskListTagHelperTests 1✅ 0ms
Dfe.PlanTech.Web.UnitTests.Binders.PageModelBinderTests 3✅ 16ms
Dfe.PlanTech.Web.UnitTests.Content.ContentServiceTests 3✅ 46ms
Dfe.PlanTech.Web.UnitTests.Content.LayoutServiceTests 15✅ 7ms
Dfe.PlanTech.Web.UnitTests.Content.ModelMapperTests 8✅ 5ms
Dfe.PlanTech.Web.UnitTests.Controllers.AuthControllerTests 1✅ 4ms
Dfe.PlanTech.Web.UnitTests.Controllers.CheckAnswersControllerTests 12✅ 1❌ 68ms
Dfe.PlanTech.Web.UnitTests.Controllers.CmsControllerTests 3✅ 31ms
Dfe.PlanTech.Web.UnitTests.Controllers.CookieControllerTests 13✅ 32ms
Dfe.PlanTech.Web.UnitTests.Controllers.PagesControllerTests 8✅ 25ms
Dfe.PlanTech.Web.UnitTests.Controllers.QuestionsControllerTests 13✅ 31ms
Dfe.PlanTech.Web.UnitTests.Controllers.RecommendationsControllerTests 12✅ 12ms
Dfe.PlanTech.Web.UnitTests.Exceptions.ExceptionTests 6✅ 1ms
Dfe.PlanTech.Web.UnitTests.Extensions.WebApplicationBuilderExtensionsTests 1✅ 1s
Dfe.PlanTech.Web.UnitTests.GetQuestionBySlugRouterTests 15✅ 108ms
Dfe.PlanTech.Web.UnitTests.Helpers.CacherTests 9✅ 79ms
Dfe.PlanTech.Web.UnitTests.Helpers.ComponentViewsFactoryTests 2✅ 68ms
Dfe.PlanTech.Web.UnitTests.Helpers.CustomTelemetryInitializerTests 2✅ 32ms
Dfe.PlanTech.Web.UnitTests.Helpers.GtmServiceTests 4✅ 1ms
Dfe.PlanTech.Web.UnitTests.Helpers.HeaderExtensionsTests 4✅ 1ms
Dfe.PlanTech.Web.UnitTests.Helpers.LogInvalidModelStateTests 1✅ 207ms
Dfe.PlanTech.Web.UnitTests.Helpers.RichTextMarkExtensionsTests 3✅ 1ms
Dfe.PlanTech.Web.UnitTests.Helpers.RouteDataExtensionsTests 4✅ 5ms
Dfe.PlanTech.Web.UnitTests.Helpers.StringExtensionsTests 6✅ 1ms
Dfe.PlanTech.Web.UnitTests.Helpers.UserHelperTests 3✅ 233ms
Dfe.PlanTech.Web.UnitTests.Middleware.HeadRequestMiddlewareTests 2✅ 84ms
Dfe.PlanTech.Web.UnitTests.Middleware.RobotsTxtMiddlewareTests 1✅ 5ms
Dfe.PlanTech.Web.UnitTests.Middleware.SecurityHeadersMiddlewareTests 1✅ 221ms
Dfe.PlanTech.Web.UnitTests.Middleware.ServiceExceptionHandlerMiddlewareTests 5✅ 130ms
Dfe.PlanTech.Web.UnitTests.Middleware.UserAuthorisationMiddlewareResultHandlerTests 6✅ 24ms
Dfe.PlanTech.Web.UnitTests.Middleware.UserJourneyMissingContentExceptionHandlerTests 1✅ 53ms
Dfe.PlanTech.Web.UnitTests.Middleware.UserOrganisationAuthorisationHandlerTests 5✅ 86ms
Dfe.PlanTech.Web.UnitTests.Models.ComponentModelTests 21✅ 14ms
Dfe.PlanTech.Web.UnitTests.Models.Content.Mapped.Custom.CustomAccordionTests 1✅ 91ms
Dfe.PlanTech.Web.UnitTests.Models.Content.Mapped.Custom.CustomAttachmentTests 1✅ 4ms
Dfe.PlanTech.Web.UnitTests.Models.Content.Mapped.Custom.CustomCardTests 1✅ 5ms
Dfe.PlanTech.Web.UnitTests.Models.Content.Mapped.Custom.CustomGridContainerTests 1✅ 2ms
Dfe.PlanTech.Web.UnitTests.Models.Content.Mapped.Standard.CsTextTests 2✅ 3ms
Dfe.PlanTech.Web.UnitTests.Models.Content.Mapped.Standard.EmbeddedAssetTests 3✅ 5ms
Dfe.PlanTech.Web.UnitTests.Models.Content.Mapped.Standard.EmbeddedEntryTests 1✅ 1ms
Dfe.PlanTech.Web.UnitTests.Models.Content.Mapped.Standard.HyperlinkTests 2✅ 2ms
Dfe.PlanTech.Web.UnitTests.Models.EstablishmentDtoTests 8✅ 1ms
Dfe.PlanTech.Web.UnitTests.Routing.CheckAnswersRouterTests 6✅ 19ms
Dfe.PlanTech.Web.UnitTests.Routing.GetRecommendationRouterTests 32✅ 70ms
Dfe.PlanTech.Web.UnitTests.TagHelpers.FooterLinkTagHelperTests 12✅ 19ms
Dfe.PlanTech.Web.UnitTests.TagHelpers.HeaderComponentTagHelperTests 9✅ 10ms
Dfe.PlanTech.Web.UnitTests.TagHelpers.RichTextTagHelperTests 2✅ 92ms
Dfe.PlanTech.Web.UnitTests.TagHelpers.TaskListTagTagHelperTests 4✅ 10ms
Dfe.PlanTech.Web.UnitTests.TagHelpers.WarningComponentTagHelperTests 1✅ 15ms
Dfe.PlanTech.Web.UnitTests.TaskListItemNameTagHelperTests 1✅ 0ms
Dfe.PlanTech.Web.UnitTests.TaskListItemTagHelperTests 1✅ 1ms
Dfe.PlanTech.Web.UnitTests.TaskListTagHelperTests 1✅ 6ms
Dfe.PlanTech.Web.UnitTests.ViewComponents.CategorySectionViewComponentTests 13✅ 78ms
Dfe.PlanTech.Web.UnitTests.ViewComponents.FooterLinksComponentTests 2✅ 194ms
Dfe.PlanTech.Web.UnitTests.ViewComponents.NotificationBannerTests 3✅ 1ms
Dfe.PlanTech.Web.UnitTests.ViewComponents.WarningComponentTests 4✅ 1ms

❌ Dfe.PlanTech.Web.UnitTests.Controllers.CheckAnswersControllerTests

✅ CheckAnswersPage_Should_Call_CheckAnswersRouter_When_Args_Valid
✅ CheckAnswersPage_Should_Call_UserJourneyMissingContentExceptionHandler_When_Exception_Thrown
✅ CheckAnswersPage_Should_ThrowException_When_SectionSlug_NullOrEmpty(section: "")
✅ CheckAnswersPage_Should_ThrowException_When_SectionSlug_NullOrEmpty(section: null)
✅ ConfirmAnswers_Should_CalculateMaturity_When_ArgsValid
❌ ConfirmAnswers_Should_Redirect_To_CheckAnswers
	Assert.Equal() Failure: Values differ
	Expected: Unable to save. Please try again. If this problem continues you can
	Actual:   Unable to save. Please try again. If this problem 
✅ ConfirmAnswers_Should_Redirect_To_Recommendations
✅ ConfirmAnswers_Should_Redirect_To_SelfAssessmentPage
✅ ConfirmAnswers_Should_ThrowException_When_SectionName_NullOrEmpty(sectionName: "")
✅ ConfirmAnswers_Should_ThrowException_When_SectionName_NullOrEmpty(sectionName: null)
✅ ConfirmAnswers_Should_ThrowException_When_SubmissionId_OutOfRange(submissionId: -1)
✅ ConfirmAnswers_Should_ThrowException_When_SubmissionId_OutOfRange(submissionId: -100)
✅ ConfirmAnswers_Should_ThrowException_When_SubmissionId_OutOfRange(submissionId: 0)

Annotations

Check failure on line 167 in tests/Dfe.PlanTech.Web.UnitTests/Controllers/CheckAnswersControllerTests.cs

See this annotation in the file changed.

@github-actions github-actions / DotNET Tests

Dfe.PlanTech.Web.UnitTests.Controllers.CheckAnswersControllerTests ► ConfirmAnswers_Should_Redirect_To_CheckAnswers

Failed test found in:
  tests/Dfe.PlanTech.Web.UnitTests/TestResults/test-results.trx
Error:
  Assert.Equal() Failure: Values differ
  Expected: Unable to save. Please try again. If this problem continues you can
  Actual:   Unable to save. Please try again. If this problem 
Raw output
Assert.Equal() Failure: Values differ
Expected: Unable to save. Please try again. If this problem continues you can
Actual:   Unable to save. Please try again. If this problem 
   at Dfe.PlanTech.Web.UnitTests.Controllers.CheckAnswersControllerTests.ConfirmAnswers_Should_Redirect_To_CheckAnswers() in /home/runner/work/sts-plan-technology-for-your-school/sts-plan-technology-for-your-school/tests/Dfe.PlanTech.Web.UnitTests/Controllers/CheckAnswersControllerTests.cs:line 167
--- End of stack trace from previous location ---