Irregular cycle

When should a women with irregular periods take a pregnancy test? Ovulated on the 19th