mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 15:43:22 +08:00
Update failing test to find correct download button
This commit is contained in:
parent
fda6e88dd3
commit
eb39f6dbd8
@ -220,7 +220,7 @@ namespace osu.Game.Tests.Visual.Ranking
|
|||||||
|
|
||||||
AddStep("load results", () => Child = new TestResultsContainer(screen = createResultsScreen()));
|
AddStep("load results", () => Child = new TestResultsContainer(screen = createResultsScreen()));
|
||||||
|
|
||||||
AddAssert("download button is disabled", () => !screen.ChildrenOfType<DownloadButton>().Single().Enabled.Value);
|
AddAssert("download button is disabled", () => !screen.ChildrenOfType<DownloadButton>().Last().Enabled.Value);
|
||||||
|
|
||||||
AddStep("click contracted panel", () =>
|
AddStep("click contracted panel", () =>
|
||||||
{
|
{
|
||||||
@ -229,7 +229,7 @@ namespace osu.Game.Tests.Visual.Ranking
|
|||||||
InputManager.Click(MouseButton.Left);
|
InputManager.Click(MouseButton.Left);
|
||||||
});
|
});
|
||||||
|
|
||||||
AddAssert("download button is enabled", () => screen.ChildrenOfType<DownloadButton>().Single().Enabled.Value);
|
AddAssert("download button is enabled", () => screen.ChildrenOfType<DownloadButton>().Last().Enabled.Value);
|
||||||
}
|
}
|
||||||
|
|
||||||
private class TestResultsContainer : Container
|
private class TestResultsContainer : Container
|
||||||
|
Loading…
Reference in New Issue
Block a user