From 89bcb36a0d0b96aad8a717386f1e669c1b98438b Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sun, 28 Jul 2019 16:45:36 +0200 Subject: behavior: Increase idle timeout for click testing --- crocoite/test_behavior.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crocoite/test_behavior.py b/crocoite/test_behavior.py index c76a267..d7401c0 100644 --- a/crocoite/test_behavior.py +++ b/crocoite/test_behavior.py @@ -31,7 +31,7 @@ from .logger import Logger from .devtools import Process from .behavior import Scroll, Behavior, ExtractLinks, ExtractLinksEvent, Crash, \ Screenshot, ScreenshotEvent, DomSnapshot, DomSnapshotEvent, mapOrIgnore -from .controller import SinglePageController, EventHandler +from .controller import SinglePageController, EventHandler, ControllerSettings from .devtools import Crashed with pkg_resources.resource_stream (__name__, os.path.join ('data', 'click.yaml')) as fd: @@ -82,8 +82,10 @@ async def test_click_selectors (url, selector): Make sure the CSS selector exists on an example url """ logger = Logger () + settings = ControllerSettings (idleTimeout=5, timeout=10) # Some selectors are loaded dynamically and require scrolling controller = SinglePageController (url=url, logger=logger, + settings=settings, service=Process (), behavior=[Scroll, partial(ClickTester, selector=selector)]) await controller.run () -- cgit v1.2.3