Pregnancy test after drinking coffee

An

Took a pregnancy test yesterday and it was positive. Took another one today after drinking a cup of coffee and it’s a very faint line (barely visible, almost negative).

Does coffee dilute the test ? Or it could be a chemical and I’m about to get my period ?