How would you test a seller's listing-creation flow on a marketplace?
JuniorCover listing validation, required fields and media, the moderation/approval gate, and the seller-side states (draft, pending review, live, rejected).
// What interviewers look for
Awareness that listing creation is seller-side with a moderation gate, distinct from a buyer flow, and that a listing has its own lifecycle states.
Common pitfall
Testing it like a generic form and ignoring the moderation gate, the rejected/edit path, and what a buyer can see at each listing state.
Model answer
I'd test it as a seller-side flow with a lifecycle and a moderation gate, not just a form. Creation: required fields, price and currency validation, image/media upload limits and formats, category selection, and prohibited-content rules. State machine: a new listing enters draft or pending-review, an approved listing goes live, a rejected listing returns to the seller with a reason and can be edited and resubmitted. I'd assert visibility at each state — a pending or rejected listing must not be buyer-visible or purchasable. I'd cover the abuse edges even here: duplicate listings, a price of zero or negative, and content that should trip moderation. And I'd check the seller dashboard reflects the correct state. The signal is that this is a moderated, stateful, seller-facing process whose outputs gate what buyers can eventually see.