From b1a1f290afda0532661d87fde10c681b04c818a6 Mon Sep 17 00:00:00 2001 From: spo Date: Fri, 16 Oct 2015 11:20:24 +0300 Subject: [PATCH] Improve SQUISH test suite_OBJECT_BROWSER/tst_ACTIVE_DOC_MANAGEMENT --- .../tst_ACTIVE_DOC_MANAGEMENT/test.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/test.squish/suite_OBJECT_BROWSER/tst_ACTIVE_DOC_MANAGEMENT/test.py b/test.squish/suite_OBJECT_BROWSER/tst_ACTIVE_DOC_MANAGEMENT/test.py index 68fabf937..f8cf838f8 100644 --- a/test.squish/suite_OBJECT_BROWSER/tst_ACTIVE_DOC_MANAGEMENT/test.py +++ b/test.squish/suite_OBJECT_BROWSER/tst_ACTIVE_DOC_MANAGEMENT/test.py @@ -12,7 +12,8 @@ def checkPartActivatedState(scenario): "Constructions (4).YOZ", "Constructions (4).XOZ", "Constructions (4).XOY", - "Parts (1)"] + "Parts (1)", + "Parts (1).Part\\_1"] for element in allPartSetElements: test.compare(DISABLE_COLOR, waitForObjectItem(":Object browser_XGUI_DataTree", element).foregroundColor, "%s is disabled after: %s" % (element, scenario)) @@ -27,14 +28,6 @@ def checkPartActivatedState(scenario): #[step] Check that Part tree is unfolded test.compare(False, waitForObjectItem(":Object browser_XGUI_DataTree", "Part\\_1").collapsed, "Part is unfolded after: %s" % scenario) -# #[step] Check that PartSet elements are folded -# partSetElements = [ -# "Parameters (0)", -# "Constructions (4)", -# "Parts (1)"] -# for element in partSetElements: -# test.compare(True, waitForObjectItem(":Object browser_XGUI_DataTree", element).collapsed, "%s is folded after: %s" % (element, scenario)) - def checkPartDeactivatedState(scenario): #[step] Check that Part id disabled and folded partElements = [ @@ -54,7 +47,8 @@ def checkPartDeactivatedState(scenario): "Constructions (4).YOZ", "Constructions (4).XOZ", "Constructions (4).XOY", - "Parts (1)"] + "Parts (1)", + "Parts (1).Part\\_1"] for element in allPartSetElements: test.compare(ENABLE_COLOR, waitForObjectItem(":Object browser_XGUI_DataTree", element).foregroundColor, "%s is enabled after: %s" % (element, scenario)) -- 2.39.2