An ECG test, also known as an electrocardiogram, is a simple and painless procedure that records the electrical activity