-
Notifications
You must be signed in to change notification settings - Fork 2
TestPlan for LoadGameDisplay
The goal of this test plan is to verify the correct functionality of the LoadGameDisplay component. This includes ensuring that save files are correctly loaded, displayed, and selected, and that the back button navigates away from the menu correctly. The following components will be tested
- Components to be Tested
- LoadGameDisplay class
- create() method
- addActors() method
- Back button functionality
- Save file selection functionality
Objective: Ensure that the LoadGameDisplay UI elements (title, save slots, back button) are correctly created and added to the stage.
Steps:
- Instantiate the LoadGameDisplay component.
- Call create() method to initialize the component.
- Check that rootTable and savesTable are created and added to the stage.
- Verify the "Load Game" title is present.
- Verify that the back button is present.
Expected Result: rootTable is populated with the "Load Game" label, the save game slots, and the back button. The rootTable is added to the stage.
Objective: Ensure that the component correctly displays available save files.
Steps:
- Place several example save files in the local saves directory.
- Instantiate the LoadGameDisplay component.
- Call create() method.
- Check if the saves are displayed in the savesTable in a neat organized way.
Expected Result:The number of save slots in the UI matches the number of save files. Each save slot displays the correct file name without the .json extension.
Objective: Ensure that clicking a save slot triggers the correct event with the save file name.
Steps:
- Mock the event system to listen for the "start" event.
- Instantiate the LoadGameDisplay component and call create().
- Simulate a click on a save slot.
- Verify that the correct save file name (e.g., save1.json) is passed to the "start" event.
Expected Result: The "start" event is triggered with the correct save file name.
Objective: Ensure that the back button triggers the correct event to exit the menu.
Steps:
- Mock the event system to listen for the "exit" event.
- Instantiate the LoadGameDisplay component and call create().
- Simulate a click on the back button.
- Verify that the "exit" event is triggered.
Expected Result: The "exit" event is triggered when the back button is clicked.
Objective: Verify the behavior when no save files are present.
Steps:
- Ensure the saves directory is empty or does not exist.
- Instantiate the LoadGameDisplay component.
- Call create().
Expected Result: The savesTable is empty or shows a placeholder message (if implemented) indicating no saves are available.
Inventory System
Scoring System
Food Recipes
Level System
Player Actions
Ordering System
Stations
Items
Map Design
Customers
Pause Menu
Upgrades
End of Day Display
Day Night Cycle
Moral System
Debug Terminal
Game Interactions Tutorial
Backstory Cutscenes
Entities and Components
Input Handling
Game Screens and Areas
Fire Extinguisher Handler Component
MainGameActions Create Docket Triggers
Main Game Order Button Display
BackstoryCutsceneDisplay Test Plan
Test Plan for MainGameOrderTicketDisplay
Test Plan for MainGameOrderBtnDisplay
Test Plan for DocketLineDisplay
Test plan for RandomComboService
Test plan for SpeedBoostUpgrade
Test plan for DancePartyUpgrade