A woman forced into selling drugs was caught out when she mistakenly thought a plain-clothes police officer was a customer.