A woman has has successful surgery on a brain tumour which was detected following a routine eye test.