Skip to content

Commit

Permalink
Wait a frame after loading scene
Browse files Browse the repository at this point in the history
  • Loading branch information
desplesda committed Nov 24, 2024
1 parent ab99056 commit 79b0569
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Tests/Runtime/DialogueRunnerTests/BuiltinLineProviderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,13 @@ public IEnumerator LoadScene()

yield return new WaitUntil(() => loaded);

yield return null; // Give all objects a chance to wake up

runner = GameObject.FindAnyObjectByType<DialogueRunner>();
runner.Should().NotBeNull();
runner.YarnProject.Should().NotBeNull();
runner.LineProvider.Should().NotBeNull();

lineProvider = runner.LineProvider.Should().BeOfExactType<BuiltinLocalisedLineProvider>().Subject;

lineProvider.Should().NotBeNull();
Expand Down

0 comments on commit 79b0569

Please sign in to comment.