Are pregnancy tests tax deductible?

I just saw in a Facebook group that pregnancy tests and anything medical or used for fertility is able to be written off on your taxes. Is this true?!? I’ve never heard this! I just had surgery to remove a uterine septum and look for endometriosis, can we write it off next year?!