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.
|Reds rally to complete four-game sweep of Cubs|
|Arzani ready for Socceroos start against Peru – Skoko|
|Braves place closer Vizcaino on DL with right shoulder inflammation|
|West Indies hold slight edge against Sri Lanka|
|Don´t touch my Grizou – Pogba defends France team-mate|
|Yankees catcher Sanchez likely heading to DL|
|Messi is frustrated and hungry – Mascherano|
|Nainggolan the ´ninja´ Inter were missing, says Spalletti|
|Anthony fires back at Thunder fans unhappy he´s staying|
|MLS Review: New York City edge Toronto in Torrent´s first game|
|Watson shoots 63 to win Travelers for third victory of season|
|Iran contest not all about Ronaldo, insists Santos|
|Truex´s team use tricky strategy to win at Sonoma|
|World Cup 2018: England at home, Brazil´s party and exploding White Nights in St Petersburg|
|Pogba reveals ´issues´ with Mourinho|
|Mascherano plays down rumours of Sampaoli bust-up|
|Sweden winger Durmaz says racist abuse ´passed limit´|
|Morgan hails ´outstanding´ Buttler century|
|Paine to discuss ODI future after England whitewash|
|Cuper unsure of Egypt future as El Hadary nears milestone|
|Koepka ´shutting down´ until Carnoustie|
|Quintero and James plot Colombia´s way through uncharted territory|
|Federer upbeat despite shock Halle defeat|
|Journalists should round on Vettel - Verrstappen|
|Poland 0 Colombia 3: Falcao´s maiden World Cup goal revitalises Pekerman´s side|
|World Cup 2018: Cossack kids, Swan Lake and the Selecao in Rostov-on-Don|
|Maria takes maiden title in Mallorca|
|Hierro: I am 100 per cent the coach of Spain|
|Busquets recognises Iniesta´s burning ambition|
|Denmark v France: Tolisso hoping for second chance|
|Eight-try Wakefield hammer sorry Widnes|
|World Cup 2018: A panda, a tapir and a nightmare for Willy in Nizhny|
|Senegal´s Wague makes African history in World Cup|
|Cilic fights back to beat Djokovic in enthralling Queen´s final|
|Neymar and Suarez among players to send Messi birthday wishes|
|Strength of Senegal and Japan´s determination could trouble England and Belgium|
|Hamilton questions Vettel punishment after Bottas´ race ´destroyed´|
|Brilliant Buttler seals whitewash in Old Trafford thriller|
|World Cup 2018: An egg-and-spoon race, vodka and the Pogbas in Kazan|
|Queiroz tells his Iran players to follow the ´three Rs´ against Ronaldo and Portugal|
|Pizzi calm over Salah threat|
|Japan 2 Senegal 2: Honda gatecrashes Cisse´s party|
|Harden should be MVP ´hands down´, says World Peace|
|Southgate optimistic over Alli recovery for Belgium decider|
|Neymar´s tears no surprise to Fagner|
|Unhappy Renard continues ref rant|
|Wallace takes BMW International title despite Olesen 61|
|Hamilton cruises back to standings summit with France win|
|In-form Kvitova defends Birmingham title|
|Southgate responds to toughest England week in record-breaking style|
|Uruguay not thinking about Portugal or Spain, insists Cavani|
|Coric stuns Federer to claim title in Halle|
|England 6 Panama 1: Kane hat-trick sees Southgate´s side sail through|
|Australia v Peru: Juric keeping the faith as Socceroos chase unlikely last-16 spot|
|England surpass class of 1966 in Panama rout|
|Nigeria v Argentina: All eyes on Messi to rescue final World Cup chance|
|NSW seal Origin series with comeback win|
|World Cup 2018: Stalin´s bunker, a space museum and Serbian specials in Samara|
|Croatia looking out for number one - Lovren|
|Heritage at back of Australian minds ahead of potential Croatia encounter|
|It may be my last World Cup - ´Realistic´ Pogba determined to reign in Russia|
|Lionel Messi´s birthday: What might the Barcelona star wish for?|
|Russia readying Dzagoev for last-16 clash|
|Germany apologised for reaction aimed at Sweden bench|
|Picture this! Sterling starts for England against Panama|
|World Cup 2018: A Russian romp, Maradona and the party in Moscow|
|Happy birthday, Lionel Messi! 10 of the Argentina star´s best goals|
|Modric worthy of Ballon d´Or, says Lovren|
|Sigurdsson ready for Croatia reunion as Iceland go for broke|
|Iceland v Croatia: Dalic to rest stars for Hallgrimsson divorce hearing|