mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 12:57:39 +09:00
Add failing test showing incorrect unread notification count
This commit is contained in:
parent
cbf55732da
commit
0ff4e343f8
@ -45,7 +45,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
displayedCount = new OsuSpriteText()
|
displayedCount = new OsuSpriteText()
|
||||||
};
|
};
|
||||||
|
|
||||||
notificationOverlay.UnreadCount.ValueChanged += count => { displayedCount.Text = $"displayed count: {count.NewValue}"; };
|
notificationOverlay.UnreadCount.ValueChanged += count => { displayedCount.Text = $"unread count: {count.NewValue}"; };
|
||||||
});
|
});
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
@ -270,6 +270,8 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
AddUntilStep("wait completion", () => notification.State == ProgressNotificationState.Completed);
|
AddUntilStep("wait completion", () => notification.State == ProgressNotificationState.Completed);
|
||||||
|
|
||||||
AddAssert("Completion toast shown", () => notificationOverlay.ToastCount == 1);
|
AddAssert("Completion toast shown", () => notificationOverlay.ToastCount == 1);
|
||||||
|
AddUntilStep("wait forwarded", () => notificationOverlay.ToastCount == 0);
|
||||||
|
AddAssert("only one unread", () => notificationOverlay.UnreadCount.Value == 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user