Chris Coleman's landmark 50th match in charge of Wales ended dramatically as Armando Cooper's strike in second-half stoppage time earned Panama a 1-1 draw in Cardiff.
With questions lingering over Coleman's Wales future after their failure to qualify for the World Cup, Tom Lawrence's stunning solo effort 15 minutes from time looked set to ensure the manager's milestone fixture would be a memorable one.
However, an earlier penalty miss from Sam Vokes would ultimately prove costly for the hosts, as Panama - who are preparing to take part in a World Cup for the first time in their history - pulled level in the 93rd minute.
Shorn of a glut of key players including Gareth Bale and Aaron Ramsey, Coleman utilised Tuesday's friendly to offer experience for a number of Wales' promising youngsters, with Lawrence, David Brooks and Ben Woodburn impressive during a lively opening.
The hosts were granted an opportunity to go ahead in the 42nd minute when Luis Ovalle scythed down David Edwards in the penalty area, but Vokes could not apply the finish from 12 yards.
Lawrence took matters into his own hands in fantastic fashion, but Cooper was on hand to steal the show in the final moments, marking what could be Coleman's final game at the helm in a disappointing draw.
50 - Chris Coleman is set to take charge of his 50th game for Wales – he’s won 19, drawn 12 and lost 18 of the previous 49. Milestone.— OptaJoe (@OptaJoe) November 14, 2017
Sheffield United youngster Brooks got his full Wales debut off to an impressive start, floating in a sublime cross to Woodburn, whose header failed to beat Jaime Penedo.
Brooks, Woodburn and Lawrence continued to shine, with the latter almost getting in on goal after weaving his way through Panama's backline, only for a heavy touch to see the chance go begging.
Wales had a glorious chance three minutes prior to the interval, though. Brooks played in Edwards, who drew a clumsy foul from Ovalle inside the box.
It was not to be, however, as Penedo got down low to his right to keep out Vokes' tame spot-kick.
That miss was to be the Burnley striker's last contribution as he made way for Barnsley forward Tom Bradshaw at half-time, but it was Panama who should have been ahead shortly after the restart.
Gabriel Torres beat the offside trap to get in on goal, but Danny Ward was out swiftly to smother the Panama forward, with Chris Gunter recovering to block the follow-up.
After James Chester headed wide from a corner, Coleman's side finally found their opener on 75 minutes - Lawrence leaving Panama's defence in his wake before curling a precise finish into the bottom-right corner.
Penedo had to be at his best to keep out Andrew Crofts' blistering attempt as the game drew to a close, and that save would prove vital as Panama found an opening at the other end.
Wales' defence switched off, allowing Cooper to drift inside and latch onto a neat throughball from substitute Ismael Diaz, and the winger kept his cool as a historic year for Panama finished in a positive fashion.
|Centurion Smith and Hazlewood put Australia on top|
|England withstand stunning Tonga fightback to reach final|
|Day moves into Australian Open lead|
|Warriors embarrass Bulls, Thunder lose despite Westbrook triple-double|
|Murray mercilessly mocks USA president Trump|
|Inspirational Smith hits century to thwart England|
|Guardiola more ´logical´ for Man United than Mourinho – Cantona|
|England unconcerned over Anderson after scare|
|Shaky starts for Greece, Russia in World Cup qualifying|
|Messi has ´no doubt´ about Real Madrid´s Champions League chances|
|England on top as wickets fall in Brisbane|
|Maxwell scores 278 in Ashes reminder|
|Falcons RB Freeman ruled out with concussion|
|Klopp quashes Conte´s recovery complaints|
|Hoeness believes in Bayern´s ´new spirit´|
|Warriors pair Durant, Green out of Bulls clash|
|Panthers activate Olsen from IR ahead of Jets clash|
|Mourinho slams Mkhitaryan for disappearing during Manchester United games|
|Newcastle beaten by Gloucester in Premiership|
|Hart hails West Ham fight under Moyes|
|Ulster leave it late to deny Treviso second away victory|
|Dolphins QB Cutler out with concussion against Patriots|
|Conte calls for clarity from Chelsea on Courtois deal|
|West Ham 1 Leicester City 1: Kouyate gets Moyes up and running|
|Robinson tips Farrell for World Rugby Player of the Year|
|Manchester United midfielder Carrick undergoes heart procedure|
|Manchester City youngster Bytyqi retires with heart condition|
|England can thrive on hostile atmosphere - O´Loughlin|
|Salah could become the Premier League´s greatest African star - Lauren|
|Lauren reserves judgement on Man City´s invincible credentials|
|Goffin and Tsonga cancel each other out on opening day of Davis Cup final|
|Stafford admits ankle is ´not 100 percent´ after Lions´ loss to Vikings|
|Bayern boss Heynckes slams ´insanity´ of Champions League ticket prices|
|Messi hails Barcelona team-mates after European Golden Shoe triumph|
|Napoli´s Hamsik saves space for a Serie A title-winning tattoo|
|Jardim urges quick Monaco response to Champions League woe|
|You always have a chance - Wagner hopeful of Man City scalp|
|Chelsea´s tough title defence was to be expected - Klopp|
|Horne replaces Dunbar in Scotland XV|
|Neymar and Cavani bound by common goal at PSG|
|Simeone: Everything seems better when Atletico win|
|F1 Raceweek: Scores to be settled in Abu Dhabi|
|Injuries not to blame for Real Madrid LaLiga position - Zidane|
|Icardi could stay at Inter forever, says Spalletti|
|Former England star Owen finishes second on horse racing debut|
|Emery backs Mbappe to shine on Monaco return|
|Robben-less Heynckes handed timely Coman boost|
|Guardiola not complacent ahead of Huddersfield clash|
|Trump to ´quickly´ play golf with Woods and Johnson|
|Salah not Liverpool´s only threat, insists Conte|
|Klopp trusts Moreno ´100 per cent´ despite Sevilla shocker|
|No excuses for Conte despite Chelsea´s travel trouble|
|Salah has nothing to prove in Chelsea reunion, says Klopp|
|We´re on the Ball - Paceman Jake says England´s homework is paying off|
|Bale return could be imminent - Zidane|
|Megson´s interim role is no audition as he awaits permanent West Brom boss|
|Bosz has derby focus despite Dortmund criticism|
|Kaka predicts bright future for Milan´s Silva|
|Lyon not sorry for controversial pre-Ashes comments|
|Ashwin takes four as India skittle out Sri Lanka|
|Messi equals Ronaldo with fourth European Golden Shoe|
|Mourinho fears Fellaini exit amid Arsenal, PSG links|
|I don´t know what you want - Mourinho blasts Man United critics|
|Mourinho protecting Pogba and Ibrahimovic as they prepare for Brighton|
|Stoke to offer Crouch fresh deal|
|Record-breaker Holmes hits Fiji for six as Australia march into final|
|Del Piero expects Juventus and Dybala to rediscover top form|
|Melbourne City 1 Perth Glory 3: Ten-man hosts pay the penalty|
|Chawrasia´s challenge on track in Hong Kong|
|Herbert leads Australian Open with Day poised|