public void TestStartWithCountdown() { ClickButtonWhenEnabled <MultiplayerReadyButton>(); AddUntilStep("countdown button shown", () => this.ChildrenOfType <MultiplayerCountdownButton>().SingleOrDefault()?.IsPresent == true); ClickButtonWhenEnabled <MultiplayerCountdownButton>(); AddStep("click the first countdown button", () => { var popoverButton = this.ChildrenOfType <Popover>().Single().ChildrenOfType <OsuButton>().First(); InputManager.MoveMouseTo(popoverButton); InputManager.Click(MouseButton.Left); }); AddStep("finish countdown", () => MultiplayerClient.SkipToEndOfCountdown()); AddUntilStep("match started", () => MultiplayerClient.LocalUser?.State == MultiplayerUserState.WaitingForLoad); }