fix(vendor-portal): state the 10 MB PDF cap in the upload hint

The vendor portal hint listed the photo and video limits but not the PDF one, so a vendor rejected for an 11 MB PDF saw a limit that was never stated. PDFs are the only accepted kind whose cap was missing from the copy; a test now pins the full hint.
This commit is contained in:
Alexandre Brandizzi 2026-09-24 23:49:19 -03:00
parent d573ab59a9
commit ef6cde64c8
2 changed files with 11 additions and 1 deletions

View file

@ -203,7 +203,7 @@ export function VendorPortalDocuments({
</button>
<span className="vp-hint">
Accepted: PDF, JPG, PNG, HEIC, MP4, MOV · Photos up to 10 MB · Videos up to 100 MB and
90 s
90 s · PDFs up to 10 MB
</span>
</div>
)}

View file

@ -109,6 +109,16 @@ describe("VendorPortalDocuments", () => {
target: { files: [file] },
});
it("states the limit for every accepted kind, including PDFs", () => {
renderDocuments();
expect(
screen.getByText(
"Accepted: PDF, JPG, PNG, HEIC, MP4, MOV · Photos up to 10 MB · Videos up to 100 MB and 90 s · PDFs up to 10 MB",
),
).toBeInTheDocument();
});
it("uploads a ~60 MB phone MOV whose browser type is empty", async () => {
vi.mocked(probeVideoDurationSeconds).mockResolvedValue(null);
const upload = vi