Agree with every word of that. Would only add that even if you're familiar with bike repair on the mechanical side of your ebike, there are likely proprietary parts and diagnostic tools for electrical problems. These are best dealt with by an authorized dealer.
So, test and buy locally if at...