Zombies still path-find and attack invisible wandering trader
Wandering traders will still get targeted by zombies even after drinking an invisibility potion at night, which I would think is intended to keep the trader from being seen by hostile mobs.