mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 14:52:57 +08:00
Add failing beatmap listing search on initial open test
This commit is contained in:
parent
d38316bf4f
commit
845bbf55fe
@ -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()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user