mirror of https://github.com/ppy/osu
Use main page constant in more places
This commit is contained in:
parent
b03813d3b4
commit
7d57a668ab
|
@ -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;
|
||||||
|
|
|
@ -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 =
|
||||||
|
|
Loading…
Reference in New Issue