Perhaps `client.waitFor(app.isDayViewActive);`?