Files
IfcOpenShell/src/bonsai/test/bim/feature/search.feature
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

68 lines
2.2 KiB
Gherkin
Raw Normal View History

2022-07-22 09:37:46 +02:00
@search
Feature: Search
Scenario: Select all walls
Given an empty IFC project
And I add a cube
And the object "Cube" is selected
And I look at the "Class" panel
And I set the "Products" property to "IfcElement"
And I set the "Class" property to "IfcWall"
And I click "Assign IFC Class"
When I look at the "Search" panel
And I click "Add Search Group"
And I click "Add Filter"
And I set the "FILE_3D" property to "IfcWall"
And I click "Search"
2022-07-22 09:37:46 +02:00
Then the object "IfcWall/Cube" is selected
Scenario: Edit filter query
Given an empty IFC project
When I look at the "Search" panel
And I click "FILTER"
Then nothing happens
Scenario: Colour by property - default class query
Given an empty IFC project
And I load the demo construction library
And I set "scene.BIMModelProperties.ifc_class" to "IfcColumnType"
And I add the construction type
When I look at the "Colour By Property" panel
And I click "Colour by Property"
Then the "BIM_UL_colourscheme" list has 1 items
Scenario: Colour by property - no query
Given an empty IFC project
When I look at the "Colour By Property" panel
And I set the "Query" property to " "
And I click "Colour by Property" and expect error "Error: No Query Provided"
Then I don't see the "BIM_UL_colourscheme" list
Scenario: Reset colours
Given an empty IFC project
And I look at the "Colour By Property" panel
And I click "Colour by Property"
When I click "Reset Colours"
Then I don't see the "BIM_UL_colourscheme" list
Scenario: Flat colours
Given an empty IFC project
And I look at the "Colour By Property" panel
And I click "Colour by Property"
When I click "SHADING_RENDERED"
Then nothing happens
Scenario: Select by property
Given an empty IFC project
2025-05-06 17:50:53 +05:00
And I add a cube
And the object "Cube" is selected
And I look at the "Class" panel
And I set the "Products" property to "IfcElement"
And I set the "Class" property to "IfcWall"
And I click "Assign IFC Class"
And I look at the "Colour By Property" panel
And I click "Colour by Property"
When I click "RESTRICT_SELECT_OFF"
Then nothing happens