If you have a viewings clause in the tenancy agreement, viewings are allowed with proper notice. Especially if the tenant gives notice, it allows for a shorter void period and that keeps rents down, so it's not always a bad thing.
A tenant is entitled to "quiet enjoyment" tho, so I always waited for vacant possession but that sets the selling/re-renting process back months.