1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 20:22:55 +08:00

Revert "Add failing test case"

This reverts commit 0182f3d7c3.
This commit is contained in:
Salman Ahmed 2024-07-25 08:51:48 +03:00
parent dad8e28446
commit e1ccf68801

View File

@ -4,12 +4,9 @@
using System; using System;
using System.Linq; using System.Linq;
using NUnit.Framework; using NUnit.Framework;
using osu.Framework.Testing;
using osu.Game.Online.API; using osu.Game.Online.API;
using osu.Game.Online.Rooms; using osu.Game.Online.Rooms;
using osu.Game.Rulesets.Osu.Mods; using osu.Game.Rulesets.Osu.Mods;
using osu.Game.Screens.Ranking;
using osu.Game.Screens.SelectV2.Leaderboards;
using osu.Game.Tests.Resources; using osu.Game.Tests.Resources;
using osu.Game.Tests.Visual.OnlinePlay; using osu.Game.Tests.Visual.OnlinePlay;
@ -17,14 +14,10 @@ namespace osu.Game.Tests.Visual.DailyChallenge
{ {
public partial class TestSceneDailyChallenge : OnlinePlayTestScene public partial class TestSceneDailyChallenge : OnlinePlayTestScene
{ {
[SetUpSteps] [Test]
public override void SetUpSteps() public void TestDailyChallenge()
{ {
base.SetUpSteps(); var room = new Room
Room room = null!;
AddStep("add room", () => API.Perform(new CreateRoomRequest(room = new Room
{ {
RoomID = { Value = 1234 }, RoomID = { Value = 1234 },
Name = { Value = "Daily Challenge: June 4, 2024" }, Name = { Value = "Daily Challenge: June 4, 2024" },
@ -38,22 +31,10 @@ namespace osu.Game.Tests.Visual.DailyChallenge
}, },
EndDate = { Value = DateTimeOffset.Now.AddHours(12) }, EndDate = { Value = DateTimeOffset.Now.AddHours(12) },
Category = { Value = RoomCategory.DailyChallenge } Category = { Value = RoomCategory.DailyChallenge }
}))); };
AddStep("add room", () => API.Perform(new CreateRoomRequest(room)));
AddStep("push screen", () => LoadScreen(new Screens.OnlinePlay.DailyChallenge.DailyChallenge(room))); AddStep("push screen", () => LoadScreen(new Screens.OnlinePlay.DailyChallenge.DailyChallenge(room)));
} }
[Test]
public void TestDailyChallenge()
{
}
[Test]
public void TestScoreNavigation()
{
AddStep("click on score", () => this.ChildrenOfType<LeaderboardScoreV2>().First().TriggerClick());
AddUntilStep("wait for load", () => Stack.CurrentScreen is ResultsScreen results && results.IsLoaded);
AddAssert("replay download button exists", () => this.ChildrenOfType<ReplayDownloadButton>().Count(), () => Is.EqualTo(1));
}
} }
} }