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.
|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|
|Moyes wants greater ref protection for Carroll|
|Unsworth questions players´ commitment after Atalanta embarrassment|
|Pistorius prison sentence more than doubled|
|Who, what, when and where? – All you need to know about the 2018 World Cup draw|
|PSG prepare for Monaco with order restored and European dominance in mind|
|Wenger calms Welbeck injury fears after planned substitution|
|The Ashes round-up: Smith and Marsh steady ship after early England burst|
|Kaka unsure over playing future amid Milan directorship offer|
|Monaco v Paris Saint-Germain: The Opta facts as Mbappe returns with Neymar in tow|
|Smith, Marsh lead revival as Australia fight back against England|
|USA claim World Cup qualifying win|
|Warner and Khawaja fall in dominant England spell|
|Rivers leads Chargers past Cowboys, Vikings beat Lions|
|Griezmann happy at Atletico, says Koke|
|Maxwell puts pressure on Marsh and selectors with blazing century|
|England collapse as Aussies bowl out Ashes tourists for 302|
|Ronaldo will deliver when needed for Madrid – Alonso|
|Hunt recommits to Wallabies, Reds|
|Blues appoint Fittler in quest for Origin glory|
|Starc rips knee, pants at Gabba|
|Rodrigo commits to Valencia until 2022|
|Parker news conference unprofessional, says Joshua|
|All Blacks injuries no help to Wales – Gatland|
|Domestic bliss? Montella targets Serie A resurgence after Europa League success|
|Rooney stands by Unsworth after Everton humiliation|
|He deserved more chances – Hazard hails ´top player´ Salah|
|Hartley set to lead England at Six Nations despite Samoa omission|
|We have to stay awake all the time - Coutinho frustrated after Sevilla collapse|
|Everton 1 Atalanta 5: Cristante and Cornelius knock more shine off Premier League strugglers|
|AC Milan 5 Austria Wien 1: Andre Silva sends Montella´s men through to the last 32|
|Joshua: Awkward Fury a ´nutjob´, but I´d knock Wilder out with one punch|
|Wasteful Arsenal leave Wenger frustrated|