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.
|Bale: Madrid will get back to their best|
|Pacers snap Spurs´ home streak|
|Kerber survives scare en route to quarters|
|Valverde: Messi is the best player there is and there ever will be|
|NFC championship Game: Three takeaways from Eagles´ win over Vikings|
|Holland, Richardson added to squad for South Africa tour|
|Rahm struggling to believe he´s world number two|
|No more miracles for Vikings as Eagles cruise to Super Bowl|
|Trout wears dog mask to support Eagles|
|Emery: Lyon loss unfair on PSG|
|Rahm wins CareerBuilder Challenge on fourth play-off hole|
|AFC Championship Game: Three takeaways from Patriots´ win over Jaguars|
|Spalletti defends struggling Inter amid six-game winless run|
|Holding: Kohli not great until he scores runs in England|
|Fekir: Lyon still targeting Champions League despite PSG win|
|J.J. Watt named Walter Payton Man of the Year finalist|
|Wenger suggests Sanchez is joining Manchester United for money|
|Brady produces stunning fourth-quarter comeback as Patriots reach 10th Super Bowl|
|Hazard: Chelsea don´t need to buy a striker|
|Rakitic hails ´patient´ Barcelona after Real Betis rout|
|Neymar? I´d rather watch the golf, says Bale|
|Mbappe injury from goalkeeper collision ´nothing serious´|
|Don´t look back - Guardiola gives Manchester City title warning|
|Vermaelen to face tests on new hamstring injury|
|Conte wants ´point of reference´ striker as Barnes joins surprising Chelsea links|
|Sane the perfect tonic to Sanchez blues for City and Guardiola|
|Suarez scores 100th LaLiga goal as Messi reaches new milestones|
|Irving scores 40 points on return but Celtics lose again|
|Lyon 2 Paris Saint-Germain 1: 10-man leaders downed by twin wondergoals|
|Inter 1 Roma 1: Vecino snatches point on possible Dzeko farewell|
|Real Betis 0 Barcelona 5: Messi, Suarez rampant as leaders go 11 points clear|
|PSG star Mbappe injured in goalkeeper collision|
|Smith rejects ball tampering talk|
|Monchi: Roma will replace Dzeko|
|Kessie a far better player than I was, claims AC Milan coach Gattuso|
|Neymar to Real Madrid stories manufactured by Spanish press, claims Marquinhos|
|Brady active with taped throwing hand for AFC Championship Game|
|Cagliari 1 AC Milan 2: Kessie at the double in comeback win|
|Watford hire Javi Gracia as Marco Silva successor|
|I am happy with our squad - Pochettino denies Malcom rumours|
|Not much changed - Zidane boosted by clinical Madrid|
|No chance of January move, says Vidal|
|Saracens edge into last eight as Wasps and Ulster miss out|
|Selfie or stitches? Ronaldo bloodied after Madrid brace|
|Heynckes hails Bayern win: This is what sets us apart|
|Southampton 1 Tottenham 1: Kane earns visitors a point|
|Silva assured of chances at AC Milan after latest first-team snub|
|Saracens scrape into Champions Cup last eight|
|Goretzka´s Schalke return marred by abuse|
|Real Madrid 7 Deportivo La Coruna 1: Seven-up for Zidane´s men as Bale shines|
|McIlroy ´in really good shape´ after Abu Dhabi return|
|Muller brings up 100 Bundesliga goals in Bayern win|
|Dimitrov places Kyrgios among tennis´ most talented after Melbourne classic|
|Bayern Munich 4 Werder Bremen 2: Lewandowski & Muller at the double to spare champions´ blushes|
|Do Arsenal or Man Utd get the better deal? Sanchez v Mkhitaryan in Opta numbers|
|Edmund: I can win Australian Open|
|Pele ´fine´ and in ´no pain´ after reported health concerns|
|Dimitrov can go all the way, claims Kyrgios|
|Dominant Wozniacki sets up Suarez Navarro showdown|
|Brilliant back nine sees Fleetwood retain title|
|Surgery pushes Pocock´s Brumbies return back three months|
|No mercenary? Sanchez endorses article defending imminent Man Utd move|
|Allegri expects Buffon to be ´fully recovered´ within a week|
|Atletico Madrid confirm Costa hamstring injury|
|Thisara stars as Sri Lanka stay alive in tri-nation series|
|Atalanta 0 Napoli 1: Mertens ends drought to keep visitors top|
|Nadal through to meet Cilic as Dimitrov downs Kyrgios|
|Dimitrov holds off Kyrgios as wait for home champion goes on|
|Alexis Sanchez boards plane ahead of reported Man United medical|
|Smith not sour over controversial dismissal|