diff options
author | Xisco Faulí <xiscofauli@libreoffice.org> | 2020-04-22 12:02:38 +0200 |
---|---|---|
committer | Xisco Faulí <xiscofauli@libreoffice.org> | 2020-04-22 13:50:26 +0200 |
commit | 0b48cee16d459d27ebd090d008ec9398c86fc581 (patch) | |
tree | a42fdba7d84544afc50ecc26caed1d1e60d5d106 /uitest | |
parent | c8475c40a0094535161e35cc89cbcdd8c8626e79 (diff) |
Revert "tdf114724: uitest: make test less time.sleep dependent"
This reverts commit 634ce6f2d87a30b8abd2e8c67668e3bb5d87406b.
See https://gerrit.libreoffice.org/c/core/+/92616
Change-Id: I642843ab16450d1a6b15d5e955495efbbfa7822a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92539
Tested-by: Jenkins
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/writer_tests5/tdf114724.py | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/uitest/writer_tests5/tdf114724.py b/uitest/writer_tests5/tdf114724.py index f5947a21e321..390e53b3ac37 100644 --- a/uitest/writer_tests5/tdf114724.py +++ b/uitest/writer_tests5/tdf114724.py @@ -26,28 +26,16 @@ class tdf114724(UITestCase): xNavigatorPanel.executeAction("ROOT", tuple()) xWriterEdit.executeAction("FOCUS", tuple()) + time.sleep(2) self.assertEqual(get_state_as_dict(xNavigatorPanel)["selectioncount"], "1") - self.assertEqual(get_state_as_dict(xNavigatorPanel)["selectedtext"], "Headings") - for _ in range(0,3): xWriterEdit.executeAction("TYPE", mkPropertyValues({"KEYCODE": "DOWN"})) + time.sleep(2) self.assertEqual(get_state_as_dict(xNavigatorPanel)["selectioncount"], "1") - - timeout = time.time() + 2 - while get_state_as_dict(xNavigatorPanel)["selectedtext"] != "HEADING 4" and time.time() < timeout: - time.sleep(0.1) - - self.assertEqual(get_state_as_dict(xNavigatorPanel)["selectedtext"], "HEADING 4") - for _ in range(0,3): xWriterEdit.executeAction("TYPE", mkPropertyValues({"KEYCODE": "UP"})) + time.sleep(2) self.assertEqual(get_state_as_dict(xNavigatorPanel)["selectioncount"], "1") - timeout = time.time() + 2 - while get_state_as_dict(xNavigatorPanel)["selectedtext"] != "HEADING 1" and time.time() < timeout: - time.sleep(0.1) - - self.assertEqual(get_state_as_dict(xNavigatorPanel)["selectedtext"], "HEADING 1") - self.xUITest.executeCommand(".uno:Sidebar") self.ui_test.close_doc() |