mirror of
https://github.com/osukey/osukey.git
synced 2025-04-30 11:17:20 +09:00
Rename test steps for legibility
This commit is contained in:
parent
b7c4fe2052
commit
709e555566
@ -218,17 +218,19 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
|
|
||||||
private void supporterRequiredPlaceholderShown()
|
private void supporterRequiredPlaceholderShown()
|
||||||
{
|
{
|
||||||
AddUntilStep("supporter-placeholder shown", () => overlay.ChildrenOfType<BeatmapListingOverlay.SupporterRequiredDrawable>().SingleOrDefault()?.IsPresent == true);
|
AddUntilStep("\"supporter required\" placeholder shown", () => overlay.ChildrenOfType<BeatmapListingOverlay.SupporterRequiredDrawable>().SingleOrDefault()?.IsPresent == true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void notFoundPlaceholderShown()
|
private void notFoundPlaceholderShown()
|
||||||
{
|
{
|
||||||
AddUntilStep("not-found-placeholder shown", () => overlay.ChildrenOfType<BeatmapListingOverlay.NotFoundDrawable>().SingleOrDefault()?.IsPresent == true);
|
AddUntilStep("\"no maps found\" placeholder shown", () => overlay.ChildrenOfType<BeatmapListingOverlay.NotFoundDrawable>().SingleOrDefault()?.IsPresent == true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void noPlaceholderShown()
|
private void noPlaceholderShown()
|
||||||
{
|
{
|
||||||
AddUntilStep("no placeholder shown", () => !overlay.ChildrenOfType<BeatmapListingOverlay.SupporterRequiredDrawable>().Any() && !overlay.ChildrenOfType<BeatmapListingOverlay.NotFoundDrawable>().Any());
|
AddUntilStep("no placeholder shown", () =>
|
||||||
|
!overlay.ChildrenOfType<BeatmapListingOverlay.SupporterRequiredDrawable>().Any()
|
||||||
|
&& !overlay.ChildrenOfType<BeatmapListingOverlay.NotFoundDrawable>().Any());
|
||||||
}
|
}
|
||||||
|
|
||||||
private class TestAPIBeatmapSet : APIBeatmapSet
|
private class TestAPIBeatmapSet : APIBeatmapSet
|
||||||
|
Loading…
x
Reference in New Issue
Block a user