mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 02:42:54 +08:00
wait for content to load in test
This commit is contained in:
parent
6d763ca3c7
commit
f2f84a2e23
@ -158,6 +158,7 @@ namespace osu.Game.Tests.Visual.Online
|
||||
AddUntilStep(@"wait for streams", () => changelog.Streams?.Count > 0);
|
||||
AddAssert(@"correct build displayed", () => changelog.Current.Value.Version == "2018.712.0");
|
||||
AddAssert(@"correct stream selected", () => changelog.Header.Streams.Current.Value.Id == 5);
|
||||
AddUntilStep(@"wait for content load", () => changelog.ChildrenOfType<ChangelogSupporterPromo>().Any());
|
||||
AddAssert(@"supporter promo showed", () => changelog.ChildrenOfType<ChangelogSupporterPromo>().First().Alpha == (isSupporter ? 0 : 1));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user