Refactored mainMenu call in GUI tests.