What usually takes place when you have a vision test? I know they test your vision to see what strength glasses you need. Do they also test for other things like glaucoma, etc.

Thanks in advance.