Dani Olmo hit a late stunner to spare Spain's blushes and secure a 2-1 win over Albania in a friendly that began in drab fashion but ended in high drama.

Ferran Torres tucked away a pass from substitute Yeremi Pino in the 75th minute to make the breakthrough at Espanyol's RCDE Stadium.

Spain were then stunned when Pau Torres headed a hopeful long ball against Albania's Myrto Uzuni and the ball trickled past debutant goalkeeper David Raya for a freak equaliser.

Yet there was still time for a classy goal from Olmo in the 90th minute, as Spain earned a victory in their first match in Catalonia for 18 years.