She was a regular on the situation comedy " Bewitched " from 1966 through 1972 , playing Esmeralda , a shy , bumbling witch whose spells never worked , who caused unintentional havoc whenever she sneezed and who turned invisible when she became nervous .