Change "Show main page" test steps to actually load the main page

This commit is contained in:
Dean Herbert 2023-05-08 15:32:00 +09:00
parent 715b735131
commit 9160711470

View File

@ -27,13 +27,13 @@ namespace osu.Game.Tests.Visual.Online
public void TestMainPage() public void TestMainPage()
{ {
setUpWikiResponse(responseMainPage); setUpWikiResponse(responseMainPage);
AddStep("Show main page", () => wiki.Show()); AddStep("Show main page", () => wiki.ShowPage());
} }
[Test] [Test]
public void TestCancellationDoesntShowError() public void TestCancellationDoesntShowError()
{ {
AddStep("Show main page", () => wiki.Show()); AddStep("Show main page", () => wiki.ShowPage());
AddStep("Show another page", () => wiki.ShowPage("Article_styling_criteria/Formatting")); AddStep("Show another page", () => wiki.ShowPage("Article_styling_criteria/Formatting"));
AddUntilStep("Current path is not error", () => wiki.CurrentPath != "error"); AddUntilStep("Current path is not error", () => wiki.CurrentPath != "error");