A good yellow dress has a particular weight to it before you've even unzipped the bag, a density that tells you the colour was dyed into a decent cloth rather than screen printed onto something thin enough to see your slip through. You hold it up to the window first, always, because yellow is the one colour that photographs one way and behaves completely differently under actual daylight, and you want to know now, not on the pavement outside.
Keep it away from anything else loud. I learned this the hard way pairing a mustard midi with a red bag that I thought read as "autumnal" and actually read as "traffic light", so now the rule is plain shoes, plain bag, let the dress be the one decision in the outfit and don't ask it to share the stage. It also doesn't want much competition from your own skin tone if you're fair, a very pale lemon can wash you right out, which is less about the dress being wrong and more about picking the right end of the yellow family for you, there's a whole spectrum between butter and mustard and most of us only suit about a third of it. As for when to wear it, this is a summer colour by instinct but it earns its keep properly in early autumn too, against navy coats and brown boots, when everything else has gone dark and one bright dress in the mix looks deliberate rather than desperate. It's also, oddly, a brilliant wedding guest colour, because it photographs warm against grass and stone in a way that pastels don't, and nobody else will have thought of it, though I'd steer clear of anything too close to white at the neckline unless you want a conversation with the bride's mother.
The difference between the ones worth having and the ones that end up at the back of the rail is almost always in the hand. Cheap yellow fabric tends to be thin and slightly waxy, it clings and creases and looks tired by lunchtime. A better one has some weight and a bit of give, cotton with a touch of structure or a viscose that actually drapes instead of sticking to tights. Check the seams at the waist and underarm, yellow shows puckering and pulled thread more mercilessly than any other colour I own, there's nowhere for bad construction to hide. Linings matter more here too, a flimsy one shows through in strong light and undoes the whole effort.
If you find one that does all that, you'll know by how little you think about it once it's on, which is the whole point.