Resolve WES-187-unit-tests-hangman-and-minigame
This commit is contained in:
committed by
Jelle De Geest
parent
b10358930b
commit
c24fe037f6
@@ -16,6 +16,13 @@ public class SpellingBeeGameEndedPanelTests
|
||||
File.WriteAllText(path, oneUser);
|
||||
PersistentDataController.GetInstance().Load();
|
||||
AssetDatabase.LoadAssetAtPath<UserAvatarList>("Assets/Accounts/ScriptableObjects/UserAvatarList.asset").Awake();
|
||||
|
||||
// Go to the minigame-selection scene to make sure that the minigameIndex is set correctly
|
||||
SystemController.GetInstance().LoadNextScene("Common/Scenes/ListMinigamesScreen");
|
||||
yield return new WaitForSeconds(0.2f);
|
||||
ListMinigamesScreen minigameScreen = (ListMinigamesScreen)GameObject.FindObjectOfType(typeof(ListMinigamesScreen));
|
||||
minigameScreen.minigameList.SetCurrentMinigame(MinigameIndex.SPELLING_BEE);
|
||||
|
||||
SystemController.GetInstance().LoadNextScene("SpellingBee/Scenes/SpellingBeeGame");
|
||||
yield return new WaitForSeconds(0.2f);
|
||||
}
|
||||
|
||||
@@ -16,6 +16,13 @@ public class SpellingBeeControllerTests
|
||||
File.WriteAllText(path, oneUser);
|
||||
PersistentDataController.GetInstance().Load();
|
||||
AssetDatabase.LoadAssetAtPath<UserAvatarList>("Assets/Accounts/ScriptableObjects/UserAvatarList.asset").Awake();
|
||||
|
||||
// Go to the minigame-selection scene to make sure that the minigameIndex is set correctly
|
||||
SystemController.GetInstance().LoadNextScene("Common/Scenes/ListMinigamesScreen");
|
||||
yield return new WaitForSeconds(0.2f);
|
||||
ListMinigamesScreen minigameScreen = (ListMinigamesScreen)GameObject.FindObjectOfType(typeof(ListMinigamesScreen));
|
||||
minigameScreen.minigameList.SetCurrentMinigame(MinigameIndex.SPELLING_BEE);
|
||||
|
||||
SystemController.GetInstance().LoadNextScene("SpellingBee/Scenes/SpellingBeeGame");
|
||||
yield return new WaitForSeconds(0.2f);
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
"AccountsScripts",
|
||||
"SignPredictor",
|
||||
"MinigameScripts",
|
||||
"CommonScripts",
|
||||
"ArchitectureScripts"
|
||||
],
|
||||
"includePlatforms": [],
|
||||
|
||||
Reference in New Issue
Block a user