The mushrooms are cooked when they become soft and slightly browned. Be careful not to overcook them, as they can lose too much moisture.