You know it's cooked when it is tender/crispy but not mushy and limp. If it's mushy, it is overcooked. The color should turn from a vibrant green to a dull olive green.