1
0
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:
Gagah Pangeran Rosfatiputra 2021-08-11 12:11:39 +07:00
parent 6d763ca3c7
commit f2f84a2e23
No known key found for this signature in database
GPG Key ID: 25F6F17FD29031E2

View File

@ -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));
}