Debian Codegraph @

src/bonsai/test/bim/feature/search.feature

raw
1 @search
2 Feature: Search
3
4 Scenario: Select all walls
5 Given an empty IFC project
6 And I add a cube
7 And the object "Cube" is selected
8 And I look at the "Class" panel
9 And I set the "Products" property to "IfcElement"
10 And I set the "Class" property to "IfcWall"
11 And I click "Assign IFC Class"
12 When I look at the "Search" panel
13 And I click "Add Search Group"
14 And I click "Add Filter"
15 And I set the "FILE_3D" property to "IfcWall"
16 And I click "Search"
17 Then the object "IfcWall/Cube" is selected
18
19 Scenario: Edit filter query
20 Given an empty IFC project
21 When I look at the "Search" panel
22 And I click "FILTER"
23 Then nothing happens
24
25 Scenario: Colour by property - default class query
26 Given an empty IFC project
27 When I look at the "Colour By Property" panel
28 And I click "Colour by Property"
29 Then the "BIM_UL_colourscheme" list has 4 items
30
31 Scenario: Colour by property - no query
32 Given an empty IFC project
33 When I look at the "Colour By Property" panel
34 And I set the "Query" property to " "
35 And I click "Colour by Property" and expect error "Error: No Query Provided"
36 Then I don't see the "BIM_UL_colourscheme" list
37
38 Scenario: Reset colours
39 Given an empty IFC project
40 And I look at the "Colour By Property" panel
41 And I click "Colour by Property"
42 When I click "Reset Colours"
43 Then I don't see the "BIM_UL_colourscheme" list
44
45 Scenario: Flat colours
46 Given an empty IFC project
47 And I look at the "Colour By Property" panel
48 And I click "Colour by Property"
49 When I click "SHADING_RENDERED"
50 Then nothing happens
51
52 Scenario: Select by property
53 Given an empty IFC project
54 And I look at the "Colour By Property" panel
55 And I click "Colour by Property"
56 When I click "RESTRICT_SELECT_OFF"
57 Then nothing happens