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

fix TestPerfectCurveChangeToBezier

This commit is contained in:
OliBomby 2022-08-19 19:31:47 +02:00
parent d1519343f6
commit 91e6f4c4ee

View File

@ -182,7 +182,7 @@ namespace osu.Game.Rulesets.Osu.Tests.Editor
{
AddStep($"click context menu item \"{contextMenuText}\"", () =>
{
MenuItem item = visualiser.ContextMenuItems[1].Items.FirstOrDefault(menuItem => menuItem.Text.Value == contextMenuText);
MenuItem item = visualiser.ContextMenuItems.FirstOrDefault(menuItem => menuItem.Text.Value == "Curve type")?.Items.FirstOrDefault(menuItem => menuItem.Text.Value == contextMenuText);
item?.Action?.Value();
});