A CEL is only triggered by engine sensors. Not headlights, not a windshield motor and not a headlight assembly. If you ran the engine with the O2 sensor disconnected, that would set a code. If it's a "hard" code ie: the problem is still a problem as seen by the ECU, the light will remain lit. If...