test(vendor-portal): use a valid PDF signature in the size-class regression

This commit is contained in:
Alexandre Brandizzi 2026-09-24 21:18:49 -03:00
parent 07bc81cc52
commit 16845a55f3

View file

@ -434,7 +434,7 @@ public sealed class VendorPortalDocumentTests : IDisposable
[Theory]
// Genuine PDF/JPEG bytes and declared type, but a video file name: the size class must
// follow the validated type, not the name, or the document/photo caps are bypassed.
[InlineData("report.mp4", "application/pdf", 12_000_000, new byte[] { 0x25, 0x50, 0x44, 0x46 })]
[InlineData("report.mp4", "application/pdf", 12_000_000, new byte[] { 0x25, 0x50, 0x44, 0x46, 0x2D })]
[InlineData("site.mov", "image/jpeg", 11_000_000, new byte[] { 0xFF, 0xD8, 0xFF, 0xE0 })]
public async Task UploadCompletionDocument_VideoExtensionDoesNotWidenSizeCap(
string fileName,