mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-30 08:33:10 +00:00
78 lines
2.0 KiB
Gherkin
78 lines
2.0 KiB
Gherkin
@style
|
|
Feature: Style
|
|
|
|
Scenario: Update style colours
|
|
Given an empty IFC project
|
|
And I add a cube
|
|
And I add a material
|
|
And I press "bim.add_style"
|
|
When I press "bim.update_style_colours"
|
|
Then nothing happens
|
|
|
|
Scenario: Remove style
|
|
Given an empty IFC project
|
|
And I add a cube
|
|
And I add a material
|
|
And I press "bim.add_style"
|
|
And the variable "style" is "{ifc}.by_type('IfcSurfaceStyle')[0].id()"
|
|
When I press "bim.remove_style(style={style})"
|
|
Then nothing happens
|
|
|
|
Scenario: Add style
|
|
Given an empty IFC project
|
|
And I add a cube
|
|
And I add a material
|
|
When I press "bim.add_style"
|
|
Then nothing happens
|
|
|
|
Scenario: Unlink style
|
|
Given an empty IFC project
|
|
And I add a cube
|
|
And I add a material
|
|
And I press "bim.add_style"
|
|
When I press "bim.unlink_style"
|
|
Then the material "Material" is not an IFC style
|
|
|
|
Scenario: Enable editing style
|
|
Given an empty IFC project
|
|
And I add a cube
|
|
And I add a material
|
|
And I press "bim.add_style"
|
|
When I press "bim.enable_editing_style"
|
|
Then nothing happens
|
|
|
|
Scenario: Disable editing style
|
|
Given an empty IFC project
|
|
And I add a cube
|
|
And I add a material
|
|
And I press "bim.add_style"
|
|
And I press "bim.enable_editing_style"
|
|
When I press "bim.disable_editing_style"
|
|
Then nothing happens
|
|
|
|
Scenario: Edit style
|
|
Given an empty IFC project
|
|
And I add a cube
|
|
And I add a material
|
|
And I press "bim.add_style"
|
|
And I press "bim.enable_editing_style"
|
|
When I press "bim.edit_style"
|
|
Then nothing happens
|
|
|
|
Scenario: Load styles
|
|
Given an empty IFC project
|
|
And I add a cube
|
|
And I add a material
|
|
And I press "bim.add_style"
|
|
When I press "bim.load_styles(style_type='IfcSurfaceStyle')"
|
|
Then nothing happens
|
|
|
|
Scenario: Disable editing styles
|
|
Given an empty IFC project
|
|
And I add a cube
|
|
And I add a material
|
|
And I press "bim.add_style"
|
|
And I press "bim.load_styles(style_type='IfcSurfaceStyle')"
|
|
When I press "bim.disable_editing_style"
|
|
Then nothing happens
|