Use main page constant in more places

This commit is contained in:
Dean Herbert 2024-01-09 13:12:54 +09:00
parent b03813d3b4
commit 7d57a668ab
No known key found for this signature in database
2 changed files with 4 additions and 3 deletions

View File

@ -25,7 +25,7 @@ public partial class TestSceneWikiHeader : OsuTestScene
private readonly Bindable<APIWikiPage> wikiPageData = new Bindable<APIWikiPage>(new APIWikiPage private readonly Bindable<APIWikiPage> wikiPageData = new Bindable<APIWikiPage>(new APIWikiPage
{ {
Title = "Main page", Title = "Main page",
Path = "Main_page", Path = WikiOverlay.INDEX_PATH,
}); });
private TestHeader header; private TestHeader header;

View File

@ -11,6 +11,7 @@
using osu.Game.Online.API.Requests; using osu.Game.Online.API.Requests;
using osu.Game.Online.API.Requests.Responses; using osu.Game.Online.API.Requests.Responses;
using osu.Game.Overlays; using osu.Game.Overlays;
using osu.Game.Overlays.Wiki;
namespace osu.Game.Tests.Visual.Online namespace osu.Game.Tests.Visual.Online
{ {
@ -111,8 +112,8 @@ private void setUpWikiResponse(APIWikiPage r, string? redirectionPath = null)
private APIWikiPage responseMainPage => new APIWikiPage private APIWikiPage responseMainPage => new APIWikiPage
{ {
Title = "Main page", Title = "Main page",
Layout = "main_page", Layout = WikiOverlay.INDEX_PATH.ToLowerInvariant(), // custom classes are always lower snake.
Path = "Main_page", Path = WikiOverlay.INDEX_PATH,
Locale = "en", Locale = "en",
Subtitle = null, Subtitle = null,
Markdown = Markdown =