Struggling with the implementation of Automation tests

So back to the C++ test, plan for this test is to load a test map, move the player towards a B_TeleportToUserFacingExperience which is a teleport to load an experience, then wait for the map to load and test the map name to confirm the correct map has been loaded.

Before I though that the fact there was no experience selected on the test map so the map wasn’t loading correctly however since instead of creating the map in C++ I created a test map where I set the experience in the world settings. Unfortunately I was still unable to locate the player using GetPlayerPawn. Currently I’m trying to load a test map that I’ve already implemented a successful function test on to see if I can get the player pawn on that map. This also did not work.

To check this was just an issue with my implementation in lyra I went back to a previous project and implemented the same test in there. Hmmm so not working on the other project either, going to change it from GetPlayerPawn to GetActorOfClass instead. No luck there either.

I have also tried creating a new map and spawning the required actors and assigning them to a variable, this also produced a null value and the actors were unable to spawn due to not specifiying a class, turns out I missed the _C from the end of the reference. Adding that fixed that issue, so I’m able to spawn the actor into a newly created world. Just have to try add the experience to the teleport now.

One post I’ve come across whilst trying to get this test working mentioned not mixing latent and non-latent commands so I’ll try implement each step as a latent command in case its trying to get the actor whilst still performing the latent load map command.

Will be trying to implementing this and adding the experience to the teleport tomorrow so if anyone is able to point out something else I might have overlooked or point me in the right direction would be much appreciated.