More bSDD tests to cover all current functionality

This commit is contained in:
Dion Moult
2025-05-18 12:05:28 +10:00
parent 4bc88eac2f
commit 1de2515fcd
4 changed files with 406 additions and 63 deletions
+73 -2
View File
@@ -8,7 +8,7 @@ Scenario: Load bSDD dictionaries
Then I see "Selected dictionary"
And I see "LCA" in the "1st" list
Scenario: Add dictionaries as classification systems
Scenario: Add classification from bSDD - add all dictionaries
Given an empty IFC project
And I look at the "buildingSMART Data Dictionary" panel
And I click "Load bSDD Dictionaries"
@@ -21,7 +21,7 @@ Scenario: Add dictionaries as classification systems
Then I see "LCA"
And I see "BonsaiTestDict"
Scenario: Add a single dictionary as a classification systems
Scenario: Add classification from bSDD - add single dictionary
Given an empty IFC project
And I look at the "buildingSMART Data Dictionary" panel
And I click "Load bSDD Dictionaries"
@@ -32,3 +32,74 @@ Scenario: Add a single dictionary as a classification systems
And I click "Add Classification From bSDD"
Then I see "BonsaiTestDict"
And I don't see "LCA"
Scenario: Search bSDD classifications - search all dictionaries
Given an empty IFC project
And I look at the "buildingSMART Data Dictionary" panel
And I click "Load bSDD Dictionaries"
When I click "is_active" in the row where I see "LCA" in the "1st" list
And I click "is_active" in the row where I see "BonsaiTestDict" in the "1st" list
And I select the object "IfcSite/My Site"
And I look at the "Classification References" panel
And I set the "classification_source" property to "buildingSMART Data Dictionary"
And I set the "active_dictionary" property to "All Dictionaries"
And I click "VIEWZOOM"
Then I see "Acidification" in the "1st" list
And I see "BonsaiReferenceA" in the "1st" list
Scenario: Search bSDD classifications - search single dictionary
Given an empty IFC project
And I look at the "buildingSMART Data Dictionary" panel
And I click "Load bSDD Dictionaries"
And I click "is_active" in the row where I see "BonsaiTestDict" in the "1st" list
And I select the object "IfcSite/My Site"
And I look at the "Classification References" panel
When I set the "classification_source" property to "buildingSMART Data Dictionary"
And I set the "active_dictionary" property to "BonsaiTestDict"
And I click "VIEWZOOM"
Then I see "BonsaiReferenceA" in the "1st" list
And I don't see "Acidification" in the "1st" list
Scenario: Add classification reference from bSDD - add classification only
Given an empty IFC project
And I look at the "buildingSMART Data Dictionary" panel
And I click "Load bSDD Dictionaries"
When I click "is_active" in the row where I see "LCA" in the "1st" list
And I click "is_active" in the row where I see "BonsaiTestDict" in the "1st" list
And I select the object "IfcSite/My Site"
And I look at the "Classification References" panel
And I set the "classification_source" property to "buildingSMART Data Dictionary"
And I set the "active_dictionary" property to "All Dictionaries"
And I click "VIEWZOOM"
Then I see "Acidification" in the "1st" list
When I select the row where I see "Acidification" in the "1st" list
And I click "Add Classification Reference"
Then I see "Acidification"
And I don't see "BonsaiReferenceA"
Scenario: Get bSDD classification properties - get associated properties then add classification
Given an empty IFC project
And I look at the "buildingSMART Data Dictionary" panel
And I click "Load bSDD Dictionaries"
When I click "is_active" in the row where I see "LCA" in the "1st" list
And I select the object "IfcSite/My Site"
And I look at the "Classification References" panel
And I set the "classification_source" property to "buildingSMART Data Dictionary"
And I set the "active_dictionary" property to "All Dictionaries"
And I click "VIEWZOOM"
When I select the row where I see "Acidification" in the "1st" list
And I click "COPY_ID"
Then I see "SizeSet"
And I see "Height"
And I see "Volume"
And I see "No References"
When I set the "Height" property to "42"
And I click "Add Classification Reference"
Then I see "Acidification"
And I don't see "No References"
When I look at the "Property Sets" panel
Then I see "SizeSet"
And I see "Height"
And I see "42"
And I see "Volume"
And I see "0"