mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Test steps rearrangement and condition fix
This commit is contained in:
@ -27,24 +27,27 @@ namespace osu.Game.Tests.Visual.Online
|
||||
var userComment = new Comment
|
||||
{
|
||||
IsVoted = false,
|
||||
UserId = API.LocalUser.Value?.Id,
|
||||
UserId = API.LocalUser.Value.Id,
|
||||
VotesCount = 10,
|
||||
};
|
||||
|
||||
var randomComment = new Comment
|
||||
{
|
||||
IsVoted = false,
|
||||
UserId = 455454,
|
||||
UserId = 4444,
|
||||
VotesCount = 2,
|
||||
};
|
||||
|
||||
AddStep("User comment", () => addVotePill(userComment));
|
||||
AddStep("Click", () => votePill.Click());
|
||||
AddAssert("Not loading", () => votePill.IsLoading == false);
|
||||
|
||||
AddStep("Random comment", () => addVotePill(randomComment));
|
||||
AddStep("Click", () => votePill.Click());
|
||||
AddAssert("Loading", () => votePill.IsLoading == true);
|
||||
AddStep("User comment", () => addVotePill(userComment));
|
||||
AddStep("Click", () => votePill.Click());
|
||||
AddAssert("Not loading", () => votePill.IsLoading == false);
|
||||
|
||||
AddStep("Log out", API.Logout);
|
||||
AddStep("Random comment", () => addVotePill(randomComment));
|
||||
AddStep("Click", () => votePill.Click());
|
||||
AddAssert("Not loading", () => votePill.IsLoading == false);
|
||||
}
|
||||
|
Reference in New Issue
Block a user