mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Update tests to specify full absolute path
This commit is contained in:
@ -48,7 +48,7 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
[Test]
|
[Test]
|
||||||
public void TestLink()
|
public void TestLink()
|
||||||
{
|
{
|
||||||
AddStep("set current path", () => markdownContainer.CurrentPath = "Article_styling_criteria/");
|
AddStep("set current path", () => markdownContainer.CurrentPath = $"{API.WebsiteRootUrl}/wiki/Article_styling_criteria/");
|
||||||
|
|
||||||
AddStep("set '/wiki/Main_Page''", () => markdownContainer.Text = "[wiki main page](/wiki/Main_Page)");
|
AddStep("set '/wiki/Main_Page''", () => markdownContainer.Text = "[wiki main page](/wiki/Main_Page)");
|
||||||
AddAssert("check url", () => markdownContainer.Link.Url == $"{API.WebsiteRootUrl}/wiki/Main_Page");
|
AddAssert("check url", () => markdownContainer.Link.Url == $"{API.WebsiteRootUrl}/wiki/Main_Page");
|
||||||
@ -113,7 +113,7 @@ needs_cleanup: true
|
|||||||
AddStep("Add relative image", () =>
|
AddStep("Add relative image", () =>
|
||||||
{
|
{
|
||||||
markdownContainer.DocumentUrl = "https://dev.ppy.sh";
|
markdownContainer.DocumentUrl = "https://dev.ppy.sh";
|
||||||
markdownContainer.CurrentPath = "Interface/";
|
markdownContainer.CurrentPath = $"{API.WebsiteRootUrl}/wiki/Interface/";
|
||||||
markdownContainer.Text = "";
|
markdownContainer.Text = "";
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -124,7 +124,7 @@ needs_cleanup: true
|
|||||||
AddStep("Add paragraph with block image", () =>
|
AddStep("Add paragraph with block image", () =>
|
||||||
{
|
{
|
||||||
markdownContainer.DocumentUrl = "https://dev.ppy.sh";
|
markdownContainer.DocumentUrl = "https://dev.ppy.sh";
|
||||||
markdownContainer.CurrentPath = "Interface/";
|
markdownContainer.CurrentPath = $"{API.WebsiteRootUrl}/wiki/Interface/";
|
||||||
markdownContainer.Text = @"Line before image
|
markdownContainer.Text = @"Line before image
|
||||||
|
|
||||||

|

|
||||||
|
Reference in New Issue
Block a user