Add general app feedback reporting

This commit is contained in:
hz
2026-07-15 20:55:13 -05:00
parent 98fa98b5b1
commit aec56f168e
17 changed files with 544 additions and 1 deletions
+15
View File
@@ -7,6 +7,21 @@ namespace QuestionsApi.Tests;
public sealed class CcsCaseTests
{
[Fact]
public void AppFeedbackValidationAcceptsSafeDiagnostics()
{
var request = new CreateAppFeedbackRequest {
Category = "bug", Details = "The next button stopped responding.",
Context = new AppFeedbackContext { Screen = "player", Platform = "Web", ViewportWidth = 1280, ViewportHeight = 720 }
};
Assert.Null(AppFeedbackValidator.Validate(request));
request.Category = "content_accuracy";
Assert.Equal("category is invalid", AppFeedbackValidator.Validate(request));
request.Category = "bug";
request.Details = "short";
Assert.Contains("details", AppFeedbackValidator.Validate(request));
}
[Fact]
public void CcsReportCategoriesAreSpecificAndStable()
{