From e9a724958c05f8466d37b9fd5acaaca40c1df145 Mon Sep 17 00:00:00 2001 From: Xavier-Do Date: Mon, 27 Jun 2022 07:06:56 +0000 Subject: [PATCH] [IMP] tests: add an option to watch chrome closes odoo/documentation#2305 Related: odoo/odoo#66769 Signed-off-by: Antoine Vandevenne (anv) --- content/developer/reference/backend/testing.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/content/developer/reference/backend/testing.rst b/content/developer/reference/backend/testing.rst index 4a6cc3271..5c61e88e3 100644 --- a/content/developer/reference/backend/testing.rst +++ b/content/developer/reference/backend/testing.rst @@ -717,6 +717,17 @@ Two new command line arguments were added since Odoo 13.0 to control this behavi :option:`--screenshots ` and :option:`--screencasts ` +Watch `browser_js` tests in Chrome DevTools +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Set `watch` to `True` when starting a tour to automatically open a new Chrome tab and watch the execution of the tour in Chrome DevTools. + +.. example:: + .. code-block:: python + + self.browser_js("/web", code, watch=True) + + Performance Testing ===================