1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-22 10:30:00 +08:00

Add failing test coverage for no score submission attempt on known locally modified beatmap

This commit is contained in:
Bartłomiej Dach
2025-10-02 09:13:30 +02:00
Unverified
parent 365cdfd40e
commit 44a1a5ffc7
@@ -316,6 +316,26 @@ namespace osu.Game.Tests.Visual.Gameplay
AddAssert("ensure no submission", () => Player.SubmittedScore == null);
}
[Test]
public void TestNoSubmissionOnLocallyModifiedBeatmapWithOnlineId()
{
prepareTestAPI(true);
createPlayerTest(false, r =>
{
var beatmap = createTestBeatmap(r);
beatmap.BeatmapInfo.Status = BeatmapOnlineStatus.LocallyModified;
return beatmap;
});
AddUntilStep("wait for token request", () => Player.TokenCreationRequested);
addFakeHit();
AddStep("exit", () => Player.Exit());
AddAssert("ensure no submission", () => Player.SubmittedScore == null);
}
[TestCase(null)]
[TestCase(10)]
public void TestNoSubmissionOnCustomRuleset(int? rulesetId)