Electric bikes are generally water-resistant, but they are not waterproof. According to an article from [Electric Ride Owner](https://electricrideowner.com/how-to-waterproof-your-ebike/), electric bike batteries are water-resistant, so you don’t need to do any temporary waterproofing to ensure moisture does not damage your electric bike’s battery. However, it is recommended to avoid using high-pressure water to clean your electric bike (source: [Cyclingnews](https://www.cyclingnews.com/features/can-electric-bikes-get-wet/)) and to dry it off after riding in wet conditions (source: [The Bicycle Geek](https://www.thebicyclegeek.com/can-electric-bikes-get-wet/)).
Though electric bikes are run electrically by motors and batteries, you can ride it in the rain and it can get wet without breaking.
Manufacturers intended bikes to function efficiently better than normal bikes as they cost you more. Electric bike break in water is impossible.