It the capacitor is visible bulged or terminals are burned the capacitor have to be replaced.
The only way to test a capacitor is using a Capacitance meter. The capacitor have to be discharged and disconnected from any wires.
If you try to use Ohmmeter that capacitor can to be “off” by 90% and still show general “OK” signs.
If the capacitor is plus or minus 10% of the labeled value have to be replaced.