Identification of spin-triplet superconductivity through a helical-chiral phase transition in Sr2RuO4 thin films