1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:17:23 +08:00

Reorder tests to not have the first test show nothing

This commit is contained in:
Dean Herbert 2021-05-17 16:16:50 +09:00
parent 032f60819d
commit ae1e62288d

View File

@ -23,6 +23,13 @@ namespace osu.Game.Tests.Visual.Online
[SetUp]
public void SetUp() => Schedule(() => Child = sidebar = new NewsSidebar());
[Test]
public void TestMetadataWithNoPosts()
{
AddStep("Add data with no posts", () => sidebar.Metadata.Value = metadata_with_no_posts);
AddUntilStep("No dropdowns were created", () => !sidebar.ChildrenOfType<MonthSection>().Any());
}
[Test]
public void TestYearsPanelVisibility()
{
@ -31,13 +38,6 @@ namespace osu.Game.Tests.Visual.Online
AddUntilStep("Years panel is visible", () => yearsPanel?.Alpha == 1);
}
[Test]
public void TestMetadataWithNoPosts()
{
AddStep("Add data with no posts", () => sidebar.Metadata.Value = metadata_with_no_posts);
AddUntilStep("No dropdowns were created", () => !sidebar.ChildrenOfType<MonthSection>().Any());
}
private YearsPanel yearsPanel => sidebar.ChildrenOfType<YearsPanel>().FirstOrDefault();
private static readonly APINewsSidebar metadata = new APINewsSidebar