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.
|Tiger Woods ´very pleased´ with Honda Classic showing|
|Silva: Neymar a doubt for Coupe de France quarter-final|
|Hat-trick hero Griezmann dreaming big in Atleti´s title bid|
|Before a manager I´m a human being - Guardiola explains continued ribbon protest|
|Neymar carried off on stretcher in PSG injury blow|
|Red-hot Schwartzman races to Rio Open glory|
|Paris Saint-Germain 3 Marseille 0: Neymar injured in easy Classique win|
|Roma 0 AC Milan 2: Cutrone and Calabria secure superb win for Rossoneri|
|Sevilla 2 Atletico Madrid 5: Griezmann hat-trick sinks sorry hosts|
|Tiafoe takes out first title in Delray Beach|
|Wenger trolled by Wembley official in Man City humbling|
|Wenger goes easy on Mustafi, despite Wembley woe|
|It´d be a dream - Henry wants Arsenal manager´s job|
|Man City just getting started, warns De Bruyne|
|Mind the goose! Tiger Woods collects birdies in more ways than one|
|Wenger rues early Aubameyang miss after Wembley humbling|
|Gary Neville blasts ´spineless´ Arsenal after EFL Cup final|
|Neymar shakes off virus to start for PSG in Le Classique vs Marseille|
|Guardiola sets sights on further silverware after ´outstanding´ EFL Cup triumph|
|EFL Cup social round-up: Men against boys and Wenger Out|
|Kompany: Winning EFL Cup makes injury nightmare worthwhile|
|I´ve signed for a football team, claims Usain Bolt|
|Van Gaal dismisses Chelsea rumours as ´fake news´|
|Toulon claim notable scalp with victory at La Rochelle|
|Reliability first - Renault to limit initial engine potential|
|Arsenal 0 Manchester City 3: Guardiola thrashes Wenger for first English trophy|
|Pochettino plans throw-in practice for Aurier|
|Conte hints at unhappiness with Hazard work-rate in Man Utd loss|
|Terrific Tigers tame Sarries to close in on top four|
|Mourinho v Conte: All smiles and handshakes on the touchline as feud cools|
|Mourinho hails Lukaku display against old club Chelsea|
|Depleted Rhinos slump to defeat at Widnes|
|Mourinho on Conte handshake: It doesn´t need words|
|Conte demands VAR after Morata sees Old Trafford equaliser ruled out|
|Pochettino defends ´easy target´ Alli after Van Aanholt clash|
|Juventus v Atalanta postponed due to snow|
|Criticism never affected me - Lukaku revels in comeback Man Utd win|
|Khachanov claims Marseille title to deny Pouille a home double|
|Guardiola wears yellow ribbon at Wembley despite FA charge|
|Cardiff extend winning run at Zebre|
|Manchester United 2 Chelsea 1: Lukaku and Lingard complete Old Trafford comeback|
|Chambers in as Wenger picks back three at Wembley|
|Pochettino satisfied with ´deserved´ Tottenham victory|
|Six Nations to investigate Scotland-England tunnel incident|
|It´s getting boring! - Dier lauds Kane following last-gasp winner|
|Lukaku finally makes big-game breakthrough for Manchester United|
|€70m not enough to prise Milinkovic-Savic from Lazio|
|Tah pens Leverkusen extension until 2023|
|Cardiff City 1 Bristol City 0: Zohore the hero again as Bluebirds win derby|
|Crystal Palace 0 Tottenham 1: Late Kane header snatches victory|
|Morgan praises Stokes´ comeback performance|
|Skriniar sees himself at Inter ´for many years´|
|Pogba, Martial start for Manchester United as Chelsea bring back Morata|
|Aluko under consideration as Neville offers Sampson critics ´clean slate´|
|Inter did not invent Icardi injury, Spalletti insists|
|Gilberto Silva: Wilshere´s mental strength key to success|
|Lewandowski: Agent change nothing to do with ´funny´ Real Madrid talk|
|Barcelona´s Semedo facing five weeks out with hamstring injury|
|Winter Olympics 2018: Bjoergen takes record-equalling gold as Norway top medal table|
|Dier has no regrets over Manchester United snub|
|No scorpion kick for Ospina as he relishes Wembley final|
|Pepperell holds on for maiden title in Qatar|
|Kante: Chelsea can take confidence from Barca draw|
|Mierzejewski magic fires Sydney FC to derby glory|
|Taylor and Santner spoil Stokes comeback|
|´Best in history´ Messi lauded by Coutinho, Busquets|
|I enjoy living this way! - Aubameyang won´t change lavish lifestyle|
|Kohli rested for Nidahas Trophy|
|QB Bortles signs contract extension with Jaguars|
|Shohei Ohtani has mixed results in MLB debut|