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.
|Wenger sees Welbeck emerging from torrid struggles|
|Zidane stands by selfless Benzema|
|Sodhi earns New Zealand ODI recall|
|´Important names´ keen on Inter star Icardi|
|Hughes returns in only England change|
|Manchester United v Chelsea: Mourinho and Conte´s feud in their own words|
|Manchester United v Chelsea: Grant´s disastrous debut, Drogba´s ´offside´ goal and other Old Traffor|
|Walker motivated by EFL Cup final showdown with Arsenal|
|Manchester United v Chelsea: ´Specialist in failure´, eye-pokes and Mourinho´s other best rows|
|CONCACAF Champions League Review: America close in on quarters with huge win|
|Keane defends Pogba as former United captain demands more from Lukaku and Sanchez|
|Stoger labels Reus ´indispensable´ amid Milan links|
|Ferdinand and Man United team-mates doubted De Gea|
|Sock, Isner and Raonic crash out at Delray Beach|
|Rain sees Cilic-Monfils suspended at crucial stage|
|Djokovic steps up rehab as Federer leads the way|
|Cuban fined $600K for tanking comments|
|Fowler says PGA National demands full attention|
|Rory McIlroy curbing expectations before Masters|
|Shakhtar would´ve won by more if not for Roma´s Alisson – Fonseca|
|Popovich would be ´surprised´ if Leonard returns for Spurs this season|
|Championship Review: Wolves squander two-goal lead to Norwich, Cardiff City take advantage|
|Mourinho happy with ´big effort´ from Pogba|
|Benneteau ousts Bautista Agut in Marseille|
|Mourinho questions medical staff after ´bad´ Herrera injury|
|Sarri demands better from Napoli ´buffoons´|
|Mourinho hugs reporter for asking about McTominay instead of Pogba|
|Di Francesco slams Roma: I should have substituted half of them!|
|Curtains for Konta and Ostapenko in Dubai|
|De Gea happy with ´important´ wonder save|
|Woods eager to experience Masters ´rush´|
|Vazquez and Asensio important to Madrid, says Zidane|
|Shakhtar Donetsk 2 Roma 1: Fred stunner seals first-leg comeback|
|Sevilla 0 Manchester United 0: De Gea ensures Mourinho´s men stay level|
|Klaasen and Duminy half-centuries set up T20 decider|
|Herrera injury gives dropped Pogba chance for reprieve|
|Tindall urges England to ´hunt´ vulnerable Scotland|
|Firmino insists he did not abuse Holgate|
|Leganes 1 Real Madrid 3: Casemiro inspires comeback for Zidane´s men|
|Milan have everything to lose – Gattuso worried about complacency|
|United a big team in defeat - Mourinho aims dig at City|
|Firmino escapes punishment after Holgate allegation|
|Mourinho benches Pogba for Sevilla clash|
|Cavendish withdraws after Abu Dhabi crash|
|Rugby greats put on show in French Alps snow|
|Gremio refute claims of €40m Arthur agreement with Barcelona|
|Messi will sign another Barcelona contract, predicts Bartomeu|
|UEFA rejects PSG appeal over Rabiot´s Real Madrid booking|
|Hardaker sacked by Tigers after failed drugs test|
|James to miss ´a few days´ of Bayern training with calf injury|
|Bellew not feeling Haye love|
|Nantes not stopping Ranieri if Italy come calling|
|Milan owner Li slams ´fake news´ over financial woes|
|Italy make three changes for France encounter|
|Wenger still gunning for top four spot with Arsenal|
|AFC Champions League Review: Kanazaki braces inspires Kashima|
|Gloucester centre Scott to re-join Edinburgh|
|Ospina to get Wembley nod as Wenger waits on Ramsey|
|Pogba not struggling at United, claims Deschamps|
|No police action against Gloucester coach Ackermann or son after nightclub incident|
|Australia proved a point with tri-series dominance, says Warner|
|Escape Messi´s shadow? Change sport! - Henry´s advice to Neymar|
|Scotland unchanged for crucial Calcutta Cup clash|
|Horsing around: Muller takes tips from equine companion|
|Lynn set for further assessment on dislocated shoulder|
|Ronaldo jets off for a break as Madrid head to Leganes|
|Bastareaud back in one of five France changes|
|Mistake to let Kroos leave Bayern for Madrid - Sammer|
|Short´s fifty and Agar´s spin seal deserved Australian tri-series win|
|Spalletti tips Ancelotti for Italy job|