mirror of
https://github.com/ppy/osu.git
synced 2025-02-07 09:02:56 +08:00
ensure page reset also work on ruleset change
This commit is contained in:
parent
55ec3b13b1
commit
387a22da2f
@ -66,6 +66,9 @@ namespace osu.Game.Tests.Visual.Online
|
||||
AddStep("Move to next page", () => rankingsOverlay.Header.CurrentPage.Value += 1);
|
||||
AddStep("Switch to another scope", () => scope.Value = RankingsScope.Score);
|
||||
AddAssert("Check page is first one", () => rankingsOverlay.Header.CurrentPage.Value == 0);
|
||||
AddStep("Move to next page", () => rankingsOverlay.Header.CurrentPage.Value += 1);
|
||||
AddStep("Switch to another ruleset", () => rankingsOverlay.Header.Ruleset.Value = new ManiaRuleset().RulesetInfo);
|
||||
AddAssert("Check page is first one", () => rankingsOverlay.Header.CurrentPage.Value == 0);
|
||||
}
|
||||
|
||||
private void loadRankingsOverlay()
|
||||
|
Loading…
Reference in New Issue
Block a user