diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2019-07-28 16:45:36 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2019-07-28 16:45:36 +0200 |
commit | 89bcb36a0d0b96aad8a717386f1e669c1b98438b (patch) | |
tree | 8e3cad197e1b3e7b4310970f44e3732572a3d8ca | |
parent | 5ef4c9450e05ab28adb0f94f4f373af599fce6f4 (diff) | |
download | crocoite-89bcb36a0d0b96aad8a717386f1e669c1b98438b.tar.gz crocoite-89bcb36a0d0b96aad8a717386f1e669c1b98438b.tar.bz2 crocoite-89bcb36a0d0b96aad8a717386f1e669c1b98438b.zip |
behavior: Increase idle timeout for click testing
-rw-r--r-- | crocoite/test_behavior.py | 4 |
1 files changed, 3 insertions, 1 deletions
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 () |