From bd071cc4723ea3bc792e8df4a537207bd3db6822 Mon Sep 17 00:00:00 2001 From: Sigma Dimensions <79010126+myoualid@users.noreply.github.com> Date: Mon, 20 Feb 2023 11:08:15 +0100 Subject: [PATCH] Add smoke test for editing material profiles --- src/blenderbim/test/bim/feature/material.feature | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/blenderbim/test/bim/feature/material.feature b/src/blenderbim/test/bim/feature/material.feature index 8fe71ff8cc..4c40c05019 100644 --- a/src/blenderbim/test/bim/feature/material.feature +++ b/src/blenderbim/test/bim/feature/material.feature @@ -395,3 +395,16 @@ Scenario: Contract material category And I press "bim.expand_material_category(category='')" When I press "bim.contract_material_category(category='')" Then nothing happens + +Scenario: Enable Editing Material set Item + Given an empty IFC project + And I load the demo construction library + When I set "scene.BIMModelProperties.ifc_class" to "IfcColumnType" + And I add the construction type + And the variable "column" is "{ifc}.by_type('IfcColumn')[0].id()" + And the object "IfcColumn/Column" is selected + And the variable "column_type" is "{ifc}.by_id({column}).IsTypedBy[0].RelatingType.id()" + And the variable "relating_material" is "{ifc}.by_id({column_type}).HasAssociations[0].RelatingMaterial.id()" + And the variable "material_profile" is "{ifc}.by_id({column_type}).HasAssociations[0].RelatingMaterial.MaterialProfiles[0].id()" + And I press "bim.enable_editing_assigned_material" + And I press "bim.enable_editing_material_set_item(material_set_item={material_profile})" \ No newline at end of file