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.
|Investment not necessary for United to challenge City – Lukaku|
|So close, but so far away – Vorm laments another Spurs failure|
|Melbourne Victory 2 Adelaide United 1: Berisha stunner seals last-four spot|
|Sharks upset Panthers as Eels finally get off the mark|
|Lopes: A return to Man City? My present is Monaco but the future belongs to God|
|Jaguares catch out Brumbies in Canberra|
|Montella urges Sevilla to use Copa setback as motivation|
|Zheng topples Wang in Zhengzhou final|
|Rakitic desperate for Iniesta stay|
|Jardim one of the best in the world – Lopes praises Monaco boss amid interest|
|Napoli refusing to give up on Scudetto dream|
|It´s a good time for Iniesta to leave Barca, says father|
|Athletics´ Manaea no-hits Red Sox, Darvish struggles once again|
|Pelicans reach second round, 76ers take 3-1 lead and T-Wolves down Rockets|
|MLS Review: Five-star LAFC, Dynamo headline goal frenzy as Atlanta silence Ibra´s Galaxy|
|Busch pulls away to claim third successive NASCAR win|
|Sanchez hails legendary Wenger ahead of Arsenal exit|
|Valverde: Nothing behind Iniesta substitution amid growing CSL links|
|White Sox´s Farquhar in critical condition after brain haemorrhage|
|Cubs place Ben Zobrist on 10-day DL|
|Hoffenheim boss Nagelsmann dismisses Arsenal and Chelsea links|
|Johnson, Landry tied for Texas lead as Mullinax sets course record|
|Gattuso, Mirabelli apologise to Milan fans after ´embarrassing´ Benevento loss|
|Marquez to start fourth after being stripped of Austin pole|
|Iniesta to make decision on his future public ´this week´|
|United want to win everything next year, says Wembley hero Sanchez|
|Cardiff edge Forest to boost promotion push|
|Bartomeu confirms Iniesta has an ´offer´ amid Chinese Super League reports|
|Messi second player to score in five Copa finals|
|Khan makes up for lost time with 40-second Lo Greco knockout|
|Mourinho challenges Alexis after Wembley star turn|
|Vieira ready for Arsenal job, says Guardiola|
|FA Cup win would represent successful season - Conte|
|Guardiola: I want Manchester City to be a Premier League machine|
|Marquez crashes before taking controversial pole in Austin|
|Sevilla 0 Barcelona 5: Suarez and Messi lead crushing Copa final win|
|Defending champion Selby dumped out in first round|
|AC Milan 0 Benevento 1: Rossoneri suffer again as bottom side stave off relegation...for now|
|Ulster stay alive in dramatic fashion as Bellini sparkles for Zebre|
|Semi-final pain for frustrated Kane|
|London stay was crucial to FA Cup Wembley win - Mourinho|
|Pochettino: Spurs need four more years – with me or another|
|Kaepernick honoured with Amnesty International award|
|He has not delivered optimal performances - Stoger explains Schmelzer omission|
|Kvitova and Pliskova put Czechs in control|
|Modric open to Ibrahimovic union in MLS|
|Spurs can´t keep doing this – Alli|
|Bulls keep Rebels waiting for South Africa win, Sharks beat Stormers|
|Heynckes highlights importance of ´psychology´ before Real Madrid clash|
|United are about winning titles and playing finals, says happy Herrera|
|Pogba and United the comeback kings again|
|Destructive De Villiers demolishes Daredevils|
|Giroud thanks Wenger for making his ´dream come true´|
|Borussia Dortmund 4 Bayer Leverkusen 0: Reus and Sancho star as Stoger´s side go third|
|Manchester United 2 Tottenham 1: Sanchez and Herrera seal comeback to book FA Cup final spot|
|Zaha´s no diver, insists Hodgson|
|Quiros maintains one-shot lead in Rabat|
|Championship Review: Wolves win title, Sunderland relegated|
|Nishikori fights back to reach Monte Carlo final|
|´Nothing compared to that night´ - Masters victory left Allen feeling flat|
|Imperious Leinster ease into Champions Cup final|
|Wilson backs Wenger for international role|
|West Brom comeback branded ´useless´ by Klopp|
|Injured Kyrgios doubtful for French Open|
|Packers QB Aaron Rodgers ventures into ownership, buys stake in NBA´s Bucks|
|Lewandowski breaks Bundesliga record in Bayern Munich victory|
|Watford 0 Crystal Palace 0: Stalemate edges both sides closer to survival|
|Inter not inferior to Roma and Lazio, Spalletti insists|
|Pogba and Sanchez start for Manchester United at Wembley|
|Gayle fires Kings XI to the top of the table|