diff options
Diffstat (limited to 'taskcluster/docker/snap-coreXX-build/snap-tests/qa_tests.py')
-rw-r--r-- | taskcluster/docker/snap-coreXX-build/snap-tests/qa_tests.py | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/taskcluster/docker/snap-coreXX-build/snap-tests/qa_tests.py b/taskcluster/docker/snap-coreXX-build/snap-tests/qa_tests.py index 7788dabe34..4c843b31d5 100644 --- a/taskcluster/docker/snap-coreXX-build/snap-tests/qa_tests.py +++ b/taskcluster/docker/snap-coreXX-build/snap-tests/qa_tests.py @@ -466,7 +466,21 @@ class QATests(SnapTestsBase): ) action.drag_and_drop_by_offset(paragraph, 50, 10).perform() time.sleep(0.75) - self.assert_rendering(exp["select_text"], self._driver) + try: + ref_screen_source = "select_text_with_highlight" + self._wait.until( + EC.visibility_of_element_located( + (By.CSS_SELECTOR, "button.highlightButton") + ) + ) + except TimeoutException: + ref_screen_source = "select_text_without_highlight" + self._logger.info( + "Wait for pdf highlight button: timed out, maybe it is not there" + ) + finally: + time.sleep(0.75) + self.assert_rendering(exp[ref_screen_source], self._driver) # release select selection action.move_by_offset(0, 150).perform() |