From 3849a87adcf46040fa8208a24e253f619f84672d Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Thu, 23 Feb 2023 18:38:20 +0500 Subject: [PATCH] Added simple tests for door and window modifier This thing used to result in errors before we fixed `replace_object_ifc_representation` --- src/blenderbim/test/bim/feature/model.feature | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/blenderbim/test/bim/feature/model.feature b/src/blenderbim/test/bim/feature/model.feature index 21571bb292..7b24e4d419 100644 --- a/src/blenderbim/test/bim/feature/model.feature +++ b/src/blenderbim/test/bim/feature/model.feature @@ -493,4 +493,24 @@ Scenario: Undo test - create a wall with window opening, flip it and undo And I prepare to undo And I press "bim.hotkey(hotkey='S_F')" And I undo - Then nothing happens \ No newline at end of file + Then nothing happens + +Scenario: Create window type based on window modifier, add an occurence of it and edit it + Given an empty IFC project + And I set "scene.BIMModelProperties.type_class" to "IfcWindowType" + And I set "scene.BIMModelProperties.type_predefined_type" to "WINDOW" + And I set "scene.BIMModelProperties.type_template" to "WINDOW" + And I press "bim.add_type()" + And I press "bim.hotkey(hotkey='S_A')" + And I press "bim.enable_editing_window()" + And I press "bim.finish_editing_window()" + +Scenario: Create door type based on door modifier, add an occurence of it and edit it + Given an empty IFC project + And I set "scene.BIMModelProperties.type_class" to "IfcDoorType" + And I set "scene.BIMModelProperties.type_predefined_type" to "DOOR" + And I set "scene.BIMModelProperties.type_template" to "DOOR" + And I press "bim.add_type()" + And I press "bim.hotkey(hotkey='S_A')" + And I press "bim.enable_editing_door()" + And I press "bim.finish_editing_door()" \ No newline at end of file