Growth-rate measurement with type-Ia supernovae using ZTF survey simulations