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.
|Steelers OT Gilbert handed four-game PED suspension|
|Prior hits back at ´ridiculous´ claims as Lyon hopes Australia end careers|
|Dolphins QB Cutler placed in concussion protocol|
|Navratilova leads tributes to ´amazing´ Novotna after her death at 49|
|Brighton and Hove Albion 2 Stoke City 2: Gross, Izquierdo extend home unbeaten run|
|Dimitrov braced for Australian Open expectations|
|Broncos fire offensive coordinator Mike McCoy|
|England won´t suffer Gabba ambush, Malan claims|
|Rose in contention to face Dortmund as Pochettino denies ´issue´ with defender|
|Benzema knows he can give more – Zidane|
|I´ve fulfilled my dreams already – Klopp has no plans to coach Barcelona|
|Memorable Ashes Moments: Unlikely saviour Agar falls agonisingly short|
|Wallabies coach Cheika faces investigation|
|The Ashes: Australia squad profiles|
|Aubameyang will face Tottenham, Bosz confirms|
|Klopp expects Matip to face Chelsea, Lallana return getting ´nearer´|
|Brown could return for England, Underhill out|
|Haye´s rematch with Bellew off due to bicep tear|
|The Ashes: England squad profiles|
|Gatland vows not to rise to New Zealand media barbs|
|Berizzo looking to former Red Aspas to provide lessons for Sevilla|
|Mangala ready to pounce, but realistic on Man City playing time|
|The Ashes: How the urn will be won - the case for Australia and England|
|Innovation key as WTA Media embraces evolving viewing habits|
|Trump calls for Lynch to be suspended as anthem row returns|
|Mendy injury means Aguero or Jesus for Guardiola|
|Kohli proud of India after almost snatching Kolkata win|
|The Ashes: Key contests in the battle for the urn|
|Guardiola sends ´big hug´ to ´amazing, so gentle´ Pulis|
|Tavecchio quits as head of FIGC, claims board have refused to resign|
|Benedetto facing Argentina World Cup KO with cruciate injury|
|Hansen hails All Blacks progress|
|Kohli´s record century precedes Bhuvneshwar heroics, but Sri Lanka cling on|
|Shape up! Heynckes reveals demand to Bayern star Vidal|
|Australia hope to open England ´scars´ in Brisbane|
|Smiling Broad sports bruise after golfing mishap|
|Ramos sits out Madrid trip to APOEL|
|West Brom sack Pulis after wretched run|
|Ball fighting fit ahead of Ashes opener at the Gabba|
|Murray should appoint Delgado as Lendl replacement - Henman|
|Former Wimbledon champion Novotna dies aged 49|
|Lloris wants Spurs to forget title and focus on top four|
|Pogba no Gerrard yet, says Benitez|
|Pearce released from Roosters contract|
|Expect to get six ducks – Paine reveals Rogers´ Ashes advice|
|Lyon: I don´t care if Stokes plays Ashes|
|Curry´s offensive explosion leads Warriors past Nets|
|Ball records second triple-double to join Magic, West in record books|
|Patriots, Ravens win among multiple blowouts|
|Flyers´ Gudas suspended for 10 games for violent slash|
|Two-time NBA All-Star David Lee announces retirement|
|Guardiola will ´kill´ City stars if they get complacent|
|Bills coach McDermott to ´evaluate´ quarterback position|
|LeBron on Kaepernick controversy: I don´t respect the NFL|
|Ibrahimovic: My injury was worse than people know|
|Russell to leave Warriors at end of season|
|Cook cruises to first PGA Tour win|
|Truex wins first NASCAR championship|
|Cardinals´ Fitzgerald now fifth all-time in receiving yards|
|Icardi like a ´raptor pouncing on its prey´, says Spalletti|
|Tired Goffin insists: ´I will be ready for Davis Cup final´|
|In-form Chelsea have regained hunger - Conte|
|Stones can bounce back stronger - Kompany|
|Guardiola ready to risk Kompany for Man City after Stones´ injury|
|City style suits me and thrills neutrals, says De Bruyne|
|Dimitrov thanks Scherzinger for giving him the X Factor at ATP Finals|
|Inter 2 Atalanta 0: Icardi brace sends Spalletti´s side second|
|Giampaolo promises more from ´extraordinary´ Sampdoria|
|Dimitrov overcomes gutsy Goffin to win ATP Finals|
|Memorable Ashes Moments: Australia skittled for 98 at MCG|