Fix bug where you could accidentally add a context other than what you selected in the UI

This commit is contained in:
Dion Moult
2021-09-30 12:08:07 +10:00
parent 352a4866dd
commit 9753ed07a0
13 changed files with 214 additions and 196 deletions
@@ -4,11 +4,11 @@ Feature: Context
Scenario: Add subcontext
Given an empty IFC project
When I press "bim.add_subcontext(context='Model')"
When I press "bim.add_subcontext(context='Model', subcontext='Body', target_view='MODEL_VIEW')"
Then nothing happens
Scenario: Remove subcontext
Given an empty IFC project
When the variable "context_id" is "IfcStore.get_file().by_type('IfcGeometricRepresentationContext')[0].id()"
And I press "bim.remove_subcontext(ifc_definition_id={context_id})"
When the variable "context" is "IfcStore.get_file().by_type('IfcGeometricRepresentationContext')[0].id()"
And I press "bim.remove_subcontext(context={context})"
Then nothing happens