That will be a long long time coming. Gasoline is about 46 MJ/KG or 34 MJ/L. The best lithium-metal batteries are about 2 MJ/KG or 5 MJ/L. The best lithium-ion batteries, about half that. Gasoline is extremely energy dense. For a comparison, TNT is only 5 MJ/KG and 7 MJ/L.
Fortunately, gasoline cars are so inefficient that you only need about 1/3 of the comparable energy in an electric car to move the vehicle. Still a ways to go, but we don't need to get to all the way gasoline energy density for the equivalent range.