1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-21 06:29:52 +08:00

Add visual test coverage of team channels

This commit is contained in:
Bartłomiej Dach
2025-02-24 09:48:03 +01:00
Unverified
parent 194f05d258
commit 4ac4b308e1
@@ -115,6 +115,12 @@ namespace osu.Game.Tests.Visual.Online
channelList.AddChannel(createRandomPrivateChannel());
});
AddStep("Add Team Channels", () =>
{
for (int i = 0; i < 10; i++)
channelList.AddChannel(createRandomTeamChannel());
});
AddStep("Add Announce Channels", () =>
{
for (int i = 0; i < 2; i++)
@@ -189,5 +195,16 @@ namespace osu.Game.Tests.Visual.Online
Id = id,
};
}
private Channel createRandomTeamChannel()
{
int id = TestResources.GetNextTestID();
return new Channel
{
Name = $"Team {id}",
Type = ChannelType.Team,
Id = id,
};
}
}
}