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.
|Uruguay v Russia: Selection posers for already-qualified pair|
|Federer scraps his way to yet another Halle final|
|Lunin rejected ´3,000 offers´ to join Real Madrid|
|On your bike! Iceland physio sent home after cycling accident|
|Not just Real Madrid interested in Fekir, says Aulas|
|France frustrated by officials again as All Blacks complete sweep in style|
|Jose Enrique reveals brain tumour surgery|
|The referee was a disaster, fumes Matic|
|Lakmal to captain Sri Lanka in Chandimal´s absence|
|Alli back in England training|
|McIlroy, Watson plotting moves as Harman leads Travelers Championship|
|Tearful Neymar is a joyful boy, says Jesus|
|Ruiz: Coutinho has the same quality as Neymar|
|Kovacic announces intention to leave Real Madrid|
|Red Sox edge Mariners in 34-hit extravaganza|
|Marquez asks Mexico fans to ´let them rest´|
|Fabregas hopeful of Spain recall|
|Milinkovic-Savic plays down Juventus speculation|
|Rashford inspired by Ronaldo|
|Messi is not a leader, he is no Ronaldo, claims Petit|
|Better than Ballack? Hodgson backs Loftus-Cheek to shine against Panama|
|Svitolina and Garcia suffer upsets|
|Walker responds to Ferdinand criticism|
|Djokovic still hungry for more after reaching major milestone|
|Ellis drop goal earns Castleford dramatic win|
|Nigeria hero Musa unsure on Leicester City future|
|X marks the spot - Granit´s rocket sets World Cup first|
|Xhaka and Shaqiri follow the script as Serbia are derailed|
|Chandimal appeal against ban rejected|
|Real Madrid sign teenage goalkeeper Lunin|
|Serbia 1 Switzerland 2: Shaqiri strikes late to clinch crucial comeback victory|
|Suspended Srna joins Serie A side Cagliari|
|Cilic sets up Kyrgios showdown as Djokovic reaches milestone|
|Kudla up next in Federer´s Halle ´fight´|
|Assistant Farbrace to take charge of England for T20 games|
|Hummels hoping to be fit for Sweden clash|
|Hend surges clear as Fleetwood struggles again in Pulheim|
|Giant-killers Mexico embrace sudden weight of expectation|
|Roma complete €17.25m Kluivert deal|
|Pakistan name strong group for Zimbabwe tour|
|Choc Horror: Boullier insists McLaren do not hand out Freddos as bonuses|
|Neymar: Not everyone knows what I went through|
|Poland v Colombia: No time to dwell on regrets, warns Aguilar|
|Musa shows Messi how it´s done to set up critical Argentina showdown|
|Nigeria 2 Iceland 0: Musa brace boosts Super Eagles & Argentina|
|McLaren and Renault open to Ricciardo talks|
|We must win, we have no other choice - Maaloul|
|Germany will respond against Sweden, insists Low|
|´The best among all Asians´, South Korea trust in Son against Mexico|
|Stalin´s bunker an unlikely site for Russia´s World Cup charm offensive|
|England v Panama: Rashford tipped to start as Southgate´s side aim for last 16|
|Erasmus wary of ´wonderful´ Cipriani|
|Hummels to miss Germany-Sweden, confirms Low|
|Murray accepts Eastbourne wildcard|
|St Petersburg madness lines up Neymar and Brazil with heroes of the past|
|Martinez happy to be ´boring Belgium´|
|Japan v Senegal: Squeaky clean Group H rivals eyeing huge step towards last 16|
|Argentina team the worst in history - Ardiles|
|Ravanelli upsets wife by taking Arsenal job...in Kiev|
|Federer moves a step closer to 10th title in Halle|
|Brazil 2 Costa Rica 0: Coutinho and Neymar score in stoppage time to snatch win|
|Andersson: Sweden embracing big occasion as bug sweeps through team|
|LeBron in ´good dialogue´ with Cavaliers|
|Ronaldo will always be the best, Fonte claims|
|Southgate criticises press for England team leak|
|O´Mahony: Series win in Australia would be up there with Grand Slam|
|Khedira thrilled with Can capture, staying with Juventus|
|Samuel open to Higuain-Icardi swap deal|
|It´s just a game - Milligan disappointed by Kruse criticism|
|From drug-testing lab to gastro pub: Sochi happy not to forget dark past|