The citizenship test must be taken while physically in Canada — it can't be done from abroad. IRCC gives you a 30-day window to complete it, so there's some flexibility on the exact date within that range.
If she gets the invite while she's away, she can request a reschedule through the IRCC web...