I would wait until all parties have signed that contract. And then maybe on day 1 or 2 of the job, mosey on down to HR to let them know. To ensure you're eligible for maternity pay in the UK, the law requires you to inform your employer of your pregnancy no later than the 15th week before your baby's due date. All the best for your interview! 🍀
Wait until you have the job offer. They can’t retract your offer by law. If you don’t get the job still let them know so you can plan mat leave and attend any appointments you have