Electroretinography is a test to measure the electrical response of the eye's light-sensitive cells, called rods and cones. These cells are part of the retina