Skip to content

Commit d9bd366

Browse files
ThomasParenteauThyodas
authored andcommitted
feat(more-manual-testing): Add tests for asset manager
Also add more tests to the SceneEditor and SceneTreeWindow (for the undo redo)
1 parent dba7c39 commit d9bd366

3 files changed

Lines changed: 54 additions & 0 deletions

File tree

tests/editor/AssetManager.test

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Asset Manager Window
2+
- Should be able to navigate into the present folder
3+
## Assets Manager Folder Tree
4+
- Should be able to expand the Assets Folder tree
5+
- Should be able to navigate onto the folder with the Assets Folder tree
6+
- The Materials filter should display only material asset on the navigated folder
7+
- The Models filter should display only model asset on the navigated folder
8+
- The Textures filter should display only texture asset on the navigated folder
9+
## Right click menu
10+
- The right click should display a menu
11+
- The right click menu should display a Create Folder option
12+
## Right click menu on a folder
13+
- The right click menu should display rename option
14+
- Should be able to rename a folder with the right click
15+
- The right click menu should display delete option
16+
- Should be able to delete a folder with the right click
17+
- The right click menu should display Details option
18+
- Should be able to display the folder details of a folder with the right click
19+
## Right click menu on an asset
20+
- The right click menu should display rename option
21+
- Should be able to rename a folder with the right click
22+
- The right click menu should display delete option
23+
- Should be able to delete a folder with the right click
24+
- The right click menu should display Details option
25+
- Should be able to display the folder details of a folder with the right click
26+
## Drag & Drop
27+
- Should be able to drag and drop asset on a scene
28+
- Should be able to drag and drop asset on the SceenTree window
29+
- Should be able to import a asset by dragging a file from your computer
30+
## Shortcuts
31+
- Should be able to undo the drag and drop of an asset with CTRL + Z
32+
- Should be able to redo the drag and drop of an asset with CTRL + SHIFT + Z
33+
## Selection
34+
- Should be able to select multiple entities with CTRL + LEFT CLICK
35+
- Should be able to deselect entity with CTRL + LEFT CLICK
36+
- Should be able to select multiple entities with SHIFT + LEFT CLICK

tests/editor/EditorScene.test

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,18 @@
2727
- Should be able to toggle snap with SHIFT + S
2828
- Should be able to hide everything but selected object with SHIFT + H
2929
- Should be able to hide everything but selected objects with multiple selection
30+
- Should be able to undo the movement of an entity with CTRL + Z
31+
- Should be able to undo the creation of a primitive with CTRL + Z
32+
- Should be able to undo the creation of a directional light with CTRL + Z
33+
- Should be able to undo the creation of a point light with CTRL + Z
34+
- Should be able to undo the creation of a spot light with CTRL + Z
35+
- Should be able to undo the creation of a camera with CTRL + Z
36+
- Should be able to redo the movement of an entity with CTRL + SHIFT + Z
37+
- Should be able to redo the creation of a primitive with CTRL + SHIFT + Z
38+
- Should be able to redo the creation of a directional light with CTRL + SHIFT + Z
39+
- Should be able to redo the creation of a point light with CTRL + SHIFT + Z
40+
- Should be able to redo the creation of a spot light with CTRL + SHIFT + Z
41+
- Should be able to redo the creation of a camera with CTRL + SHIFT + Z
3042
## Selection
3143
- Should be able to click on an entity to select it
3244
- Selected entities should have an outline

tests/editor/SceneTree.test

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,9 @@
3838
- Should be able to unhide all with CTRL + H
3939
- Should be able to delete entity with DELETE
4040
- Should be able to delete multiple entities with DELETE
41+
- Should be able to undo the deletion of an entity with CTRL + Z
42+
- Should be able to redo the deletion of an entity with CTRL + SHIFT + Z
43+
- Should be able to undo the deletion of multiple entity with CTRL + Z
44+
- Should be able to redo the deletion of multiple entity with CTRL + SHIFT + Z
45+
- Should be able to undo the deletion of an entity with parent entity or children entity with CTRL + Z
46+
- Should be able to redo the deletion of an entity with parent entity or children entity with CTRL + SHIFT + Z

0 commit comments

Comments
 (0)