I think it should make sense to you that all of the x-components or the horizontal components of the electrostatic force all cancel out, because they're infinite points to either side of this test charge. 