Update navigation tests to use waitFor instead of expect.