mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 14:02:27 +00:00
Fix bug where you could accidentally add a context other than what you selected in the UI
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user