A hero that is capable of casting spells in auto-resolved battles will do so. However, the mana cost is not properly applied to the hero - in effect, all spells in auto-resolve are currently free. I assume that this is a bug, since spells in manual battles cost mana, and are applied to the hero after combat finishes.