mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Add failing beatmap listing search on initial open test
This commit is contained in:
@ -563,6 +563,18 @@ namespace osu.Game.Tests.Visual.Navigation
|
|||||||
AddUntilStep("featured artist filter is off", () => !getBeatmapListingOverlay().ChildrenOfType<BeatmapSearchGeneralFilterRow>().First().Current.Contains(SearchGeneral.FeaturedArtists));
|
AddUntilStep("featured artist filter is off", () => !getBeatmapListingOverlay().ChildrenOfType<BeatmapSearchGeneralFilterRow>().First().Current.Contains(SearchGeneral.FeaturedArtists));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void TestBeatmapListingLinkSearchOnInitialOpen()
|
||||||
|
{
|
||||||
|
BeatmapListingOverlay getBeatmapListingOverlay() => Game.ChildrenOfType<BeatmapListingOverlay>().FirstOrDefault();
|
||||||
|
|
||||||
|
AddStep("open beatmap overlay with test query", () => Game.SearchBeatmapSet("test"));
|
||||||
|
|
||||||
|
AddUntilStep("wait for beatmap overlay to load", () => getBeatmapListingOverlay()?.State.Value == Visibility.Visible);
|
||||||
|
|
||||||
|
AddAssert("beatmap overlay sorted by relevance", () => getBeatmapListingOverlay().ChildrenOfType<BeatmapListingSortTabControl>().Single().Current.Value == SortCriteria.Relevance);
|
||||||
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void TestMainOverlaysClosesNotificationOverlay()
|
public void TestMainOverlaysClosesNotificationOverlay()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user