my two cents worth....
I broke the frame of my Salsa Rangefinder so i transferred my CYC X1 Stealth (gen 1) to a Surly Krampus. I now have about 1200 miles accumulated on the motor. I applied silicone caulk where the wiring enters the motor. I relocated the BAC855 controller from below the motor and placed it in the battery bag. The controller is sealed with a type of potting compound (not like the ones I saw online). I applied dielectric grease to the joliet connectors and then used heat shrink tubing on them. i used silicone caulk on the phase wire connectors.
Recently, I was riding at Patapsco Valley and the usual crossing of the north branch was pretty full. The sandbar on the far side was almost submerged. I attempted the crossing with assist and made it to the sandbar where a sizable channel had emerged (new) between the sandbar and the bank. Pretty sure the motor dipped in at that point. Proceeded about 7 miles before returning to the crossing.
This is where it gets interesting. I misjudged the current and depth and knew I was in trouble when the front axel went below the waterline. As I dismounted, the bike got swept sideways. The only thing above the water was the left handlebar, display and throttle. I dropped to my knees and the water was somewhere between my crotch and my waist. Motor, battery bag, harness, etc fully submerged for 10 to 20 seconds. Still had to cross main part of the river. Once across, I just rode it out, and since I was not seeing any adverse reaction, no standing water in the bag, I extended my loop and actually rode it harder...total 15 mi. (short)
Once at home I let it air out. Since then I have been on a 40 mile rail trail with no problems. Future will show if water ingress will be problematic. I have not disassembled to check. Although some water leaked into the battery bag, I think the water resistant zipper on the Luna bag saved my ass.
This picture is taken from the sandbar, and shows the easy part of the river crossing. The sandbar usually extends out to the tree branches and foam. The channel is behind me.