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
|
2024-08-24 14:20:13 +10:00
|
|
|
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
|
2024-08-24 14:20:13 +10:00
|
|
|
|
|
|
|
|
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
|
2025-05-18 19:23:34 +10:00
|
|
|
And I load the demo construction library
|
|
|
|
|
And I set "scene.BIMModelProperties.ifc_class" to "IfcColumnType"
|
|
|
|
|
And I add the construction type
|
2024-08-24 14:20:13 +10:00
|
|
|
When I look at the "Colour By Property" panel
|
|
|
|
|
And I click "Colour by Property"
|
2025-05-18 19:23:34 +10:00
|
|
|
Then the "BIM_UL_colourscheme" list has 1 items
|
2024-08-24 14:20:13 +10:00
|
|
|
|
|
|
|
|
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"
|
2024-08-24 21:39:41 +10:00
|
|
|
Then I don't see the "BIM_UL_colourscheme" list
|
2024-08-24 14:20:13 +10:00
|
|
|
|
|
|
|
|
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"
|
2024-08-24 21:39:41 +10:00
|
|
|
Then I don't see the "BIM_UL_colourscheme" list
|
2024-08-24 14:20:13 +10:00
|
|
|
|
|
|
|
|
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"
|
|
|
|
|
|
2024-08-24 14:20:13 +10:00
|
|
|
And I look at the "Colour By Property" panel
|
|
|
|
|
And I click "Colour by Property"
|
|
|
|
|
When I click "RESTRICT_SELECT_OFF"
|
|
|
|
|
Then nothing happens
|