diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-07-10 10:23:06 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-07-10 10:44:08 +0200 |
commit | c5875ef76bf34b2f5dafe6cc1d25267bd5203685 (patch) | |
tree | 75513a933a959b7def26bffda0505f0ff1a17b8a | |
parent | Resolves: tdf#100732 hang closing Print Preview with X-icon on menubar (diff) | |
download | core-c5875ef76bf34b2f5dafe6cc1d25267bd5203685.tar.gz core-c5875ef76bf34b2f5dafe6cc1d25267bd5203685.zip |
uitest: handle the new template dialog in impress
Change-Id: I98507b0e810db88ad94ea093db2d7dc7f495e7ab
-rw-r--r-- | uitest/impress_tests/start.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/uitest/impress_tests/start.py b/uitest/impress_tests/start.py index 2de7482f6467..905126a00fc3 100644 --- a/uitest/impress_tests/start.py +++ b/uitest/impress_tests/start.py @@ -28,6 +28,12 @@ class SimpleImpressTest(UITestCase): self.ui_test.create_doc_in_start_center("impress") + xTemplateDlg = self.xUITest.getTopFocusWindow() + xCancelBtn = xTemplateDlg.getChild("cancel") + xCancelBtn.executeAction("CLICK", tuple()) + + time.sleep(2) + xImpressDoc = self.xUITest.getTopFocusWindow() xEditWin = xImpressDoc.getChild("impress_win") @@ -39,7 +45,14 @@ class SimpleImpressTest(UITestCase): self.ui_test.create_doc_in_start_center("impress") + xTemplateDlg = self.xUITest.getTopFocusWindow() + xCancelBtn = xTemplateDlg.getChild("cancel") + xCancelBtn.executeAction("CLICK", tuple()) + + time.sleep(2) + xImpressDoc = self.xUITest.getTopFocusWindow() + print(xImpressDoc.getChildren()) xEditWin = xImpressDoc.getChild("impress_win") @@ -51,7 +64,14 @@ class SimpleImpressTest(UITestCase): self.ui_test.create_doc_in_start_center("impress") + xTemplateDlg = self.xUITest.getTopFocusWindow() + xCancelBtn = xTemplateDlg.getChild("cancel") + xCancelBtn.executeAction("CLICK", tuple()) + + time.sleep(2) + xImpressDoc = self.xUITest.getTopFocusWindow() + print(xImpressDoc.getChildren()) xEditWin = xImpressDoc.getChild("impress_win") @@ -61,7 +81,14 @@ class SimpleImpressTest(UITestCase): self.ui_test.create_doc_in_start_center("impress") + xTemplateDlg = self.xUITest.getTopFocusWindow() + xCancelBtn = xTemplateDlg.getChild("cancel") + xCancelBtn.executeAction("CLICK", tuple()) + + time.sleep(2) + xImpressDoc = self.xUITest.getTopFocusWindow() + print(xImpressDoc.getChildren()) xEditWin = xImpressDoc.getChild("impress_win") |