mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-02 15:33:12 +00:00
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:
parent
d573ab59a9
commit
ef6cde64c8
2 changed files with 11 additions and 1 deletions
|
|
@ -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>
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue