Handling drainage / foundation issues

I’ve been looking at some properties that have had drainage issues. Anyone have experience with these repairs?

If you pay to get the drainage issues fixed and there haven’t been any foundation issues yet, how probable is it that the foundation will be okay?

get a foundation report .