Only at a high end. Take a random midrange Oppo, Xiaomi, Huawei, Samsung until a few gens ago and they're not waterproof.
https://9to5mac.com/2014/07/17/apple-ceo-tim-cook-says-every...
So you are looking for a spill in that 20% of the time.
Watch your wallet.
So, glasses whose mouth is wider than their bottom are prone to collapse because the centre of gravity is higher
Depending on your luck and your laptop's vintage, many business class laptops offer(ed) keyboard spill protection. I think my HP ProBook 430 G3 had it, I've definitely spilled a lot of water once from a big bottle and it was mostly "fine". (The headphone jack didn't work but I don't remember if that was a pre-existing issue.) Iirc thinkpads may also offer it.