Any comments so far? It compiles fine, but as stated, I haven't ordered the Arduino yet, so can't upload it yet
Personally, I think you are wasting your time writing code for something you don't even have. There will be plenty of time to work out all that is potentially wrong with that code when you have hardware to test with.
For instance, how do you plan to connect the switches?
What is a glassSensor? Why is Pin missing from the name? You are not really reading from a glassSensor. You are reading from a pin that might have a glass sensor, whatever that is, attached to it.
Connecting a switch to pin 1 is not a good idea. You'll learn why when you start trying to debug your code.
Naming the pin buttonPress is also a big mistake.
if (digitalRead(buttonPress) == HIGH //if the signal from the button is HIGH (or pressed)
If you wire the switch the easy way, LOW will mean pressed.
If you don't understand why, look at the switch tutorial (misnamed button).
delay(1250); //keep relay activated long enough to dispense certain volume
I wonder if this should be maybe 1248. Or 1251. Magic numbers belong at the top of the code, with #define's names or variable names, so that they can be changed easily when the magic number turns out to be wrong.
It is likely, though, that you'll need some feedback to determine when that amount of fluid has been dispensed, rather than guessing that opening the solenoid for that long is close enough.