Add general app feedback reporting
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user