That is often a problem. In NM, make sure you store your Wifi password unencrypted (for all users). Otherwise you need to login before your Keyring is open and the password can be used.
Check the status
systemctl status network-online.target
It should show if it is active and since when. The time can be compared to the failed mount.
Sometimes it is easier to cerate a mount unit and don’t use the fstab at all. With a mount unit, you can use the automount feature. And even if you don’t want to use the automount, you can easily delay the mount with a mount unit a few seconds, so it always works.
If you connect your system to different Wifis, a NM dispatcher Script can also help you, to only try to mount if you conned to your Home network.