Did Mary expect Jesus to do a miracle? I kind of doubt it, but she did expect that Jesus could deal with the problem at hand, and in this way we might say Mary is transitioning in her role as a mother to Jesus, to a believer in Jesus, someone you take all your needs to, trusting that he will do what needs to be done, whatever he chooses to do, and however he chooses to do it.