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.
|Great Britain and Argentina handed Davis Cup wildcards|
|Strong start key for European skipper Bjorn|
|Schmiedlova ousts former Tashkent champion Hibino|
|Mourinho and Pogba in frosty training ground exchange|
|Ashworth to leave FA for Brighton job|
|Gillespie backs Finch for Test success|
|Woods and Mickelson pairing ´not too likely´ - Furyk|
|Pogba v Mourinho: Who should stay and who should go at Manchester United?|
|Rahm better than I was at my first Ryder Cup, says McIlroy|
|Erdogan claims double standards in Ozil controversy|
|F1 Raceweek: Mercedes eye five in a row in Sochi – Russian GP in numbers|
|Rose: Stature doesn´t win Ryder Cup points|
|Sonny Bill Williams fit to face Pumas - Crotty|
|Exuberant Rahm expecting to be paired with calming influence|
|I´ve proved myself over and over - Garcia|
|Ocon negotiating with Williams for 2019|
|Kvitova´s Wuhan quest ended by Pavlyuchenkova|
|Hummels impressed by ´incredible´ Sanches|
|Brewers benefit from Pirates´ trade deadline acquisition of Archer|
|Barty upsets Kerber in Wuhan|
|England could still pick Cipriani despite training camp snub|
|Astros become first defending champions to reach 100 wins since 1990 Athletics|
|Wilder waiting for ´real offer´ to fight Joshua|
|LeBron focusing on patience after first Lakers practice|
|Pochettino expects Spurs in new stadium by Christmas|
|Inzaghi: With Ronaldo, Juve are best team in Europe|
|Some people talk too much – Icardi hits back at critics|
|Kovac, Robben praise Augsburg after draw|
|Angels star Ohtani to undergo Tommy John surgery|
|Simeone tips Gimenez to be fit for Madrid derby|
|Smith on his NBA Finals miscue: People make mistakes all the time|
|Rams CB Talib to have ankle surgery|
|Cousins ´feeling a lot better´, still unsure when he´ll return|
|I knew we´d be in trouble with Jones on penalties – Mourinho|
|Coyotes forward Galchenyuk expected to miss opener|
|Guardiola won´t compare Foden to Iniesta|
|Lampard shell-shocked as Derby win at Old Trafford|
|Ryder Cup 2018: USA celebrities take the honours|
|Manchester United´s torrid penalty shoot-out run continues against Derby|
|Guardiola: Foden already a great, great player|
|Atletico Madrid 3 Huesca 0: Rojiblancos cruise ahead of Madrid derby|
|EFL Cup: Lampard dumps out Mourinho, Burnley lose at Burton Albion|
|Mourinho denies Pogba row despite stripping midfielder of vice-captaincy|
|Fabinho situation not complicated, insists Klopp|
|Manchester United 2 Derby County 2 (Derby win 8-7 on pens): Lampard heaps pressure on Mourinho|
|Afghanistan snatch tie after Shahzad pummels India|
|Inter 2 Fiorentina 1: D´Ambrosio maintains Nerazzurri revival|
|Oxford United 0 Manchester City 3: Foden stars as EFL Cup holders cruise into round four|
|Cousin takes Gabon post after Aubameyang rejection|
|Bayern Munich 1 Augsburg 1: Neuer error costs champions|
|Paris Saint-Germain must be a Champions League force to help Neymar - Baptista|
|Salgado warns of ´war´ in Spanish football|
|Cech deserves Arsenal place, says Seaman|
|Halep and Garcia among seeds to fall in Wuhan|
|F1 Raceweek: Mercedes taking no comfort in points advantage|
|Benitez charged by FA for referee comment relating to Zaha treatment|
|Cibulkova dumps out hampered Halep in Wuhan|
|Mourinho questions his players amid reports Pogba won´t captain United again|
|European Ryder Cup diary: Fleetwood´s hair delights Poulter|
|USA Ryder Cup diary: Tiger´s roaring reception, McEnroe´s bold prediction|
|Loans to be limited under new FIFA proposal|
|Prolific Nadolo signs new Montpellier contract|
|Modric? For us, Messi is the best – Valverde|
|Murray makes winning start in Shenzhen|
|Mickelson would cherish first victory on European soil|
|Hodge hoping pressure proves too much for South Africa|
|Woodward in show of support for under-fire Mourinho|
|Mickelson jokes he wants ´a shot a side´ from Tiger in Thanksgiving showdown|
|Reed: Captain America is a villain in Europe|
|Duminy to captain Proteas as Elgar replaces injured Amla|