mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Another approach to fix test scene failure
This commit is contained in:
@ -36,10 +36,10 @@ namespace osu.Game.Tests.Visual.Online
|
||||
setUpNewsResponse(responseWithCursor, "Set up cursor response");
|
||||
AddStep("Show", () => overlay.Show());
|
||||
AddUntilStep("Show more button is ready", () => showMoreButton != null);
|
||||
AddAssert("Show More button is visible", () => showMoreButton.Alpha == 1);
|
||||
AddAssert("Show More button is visible", () => showMoreButton?.Alpha == 1);
|
||||
setUpNewsResponse(responseWithNoCursor, "Set up no cursor response");
|
||||
AddStep("Click Show More", () => showMoreButton.Click());
|
||||
AddAssert("Show More button is hidden", () => showMoreButton.Alpha == 0);
|
||||
AddStep("Click Show More", () => showMoreButton?.Click());
|
||||
AddAssert("Show More button is hidden", () => showMoreButton?.Alpha == 0);
|
||||
}
|
||||
|
||||
private ShowMoreButton showMoreButton => overlay.ChildrenOfType<ShowMoreButton>().First();
|
||||
|
Reference in New Issue
Block a user