From 360f0b618008ec7e62d0cdfeedc31cfccfb26fc8 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 7 Jan 2016 07:12:51 +0100 Subject: [PATCH] bdd: Improve :inspector tests. --- tests/integration/features/misc.feature | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/integration/features/misc.feature b/tests/integration/features/misc.feature index 2dfa5af64..e6d6c914b 100644 --- a/tests/integration/features/misc.feature +++ b/tests/integration/features/misc.feature @@ -117,6 +117,22 @@ Feature: Various utility commands. And I wait for "Focus object changed: *" in the log Then no crash should happen + # Different code path as an inspector got created now + Scenario: Inspector without developer extras (after smoke) + When I set general -> developer-extras to false + And I run :inspector + Then the error "Please enable developer-extras before using the webinspector!" should be shown + + # Different code path as an inspector got created now + @not_xvfb @posix + Scenario: Inspector smoke test 2 + When I set general -> developer-extras to true + And I run :inspector + And I wait for "Focus object changed: " in the log + And I run :inspector + And I wait for "Focus object changed: *" in the log + Then no crash should happen + # :stop/:reload # WORKAROUND for https://bitbucket.org/cherrypy/cherrypy/pull-requests/117/