Use direct localised string reference in test

This commit is contained in:
Dean Herbert 2022-04-20 14:51:16 +09:00
parent 66373bf038
commit 7e7fa633f0

View File

@ -11,6 +11,7 @@ using osu.Framework.Graphics.Containers;
using osu.Framework.Screens;
using osu.Framework.Testing;
using osu.Game.Configuration;
using osu.Game.Localisation;
using osu.Game.Overlays;
using osu.Game.Overlays.FirstRunSetup;
using osu.Game.Overlays.Notifications;
@ -126,7 +127,7 @@ namespace osu.Game.Tests.Visual.UserInterface
if (overlay.CurrentScreen?.IsLoaded != false)
nextButton.TriggerClick();
return nextButton.Text.ToString() == "Finish";
return nextButton.Text.ToString() == CommonStrings.Finish;
});
AddUntilStep("step back to start", () =>