From f425aee52b9ff7ac4d83209d06dd8b4ab82a2303 Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Fri, 20 Mar 2020 07:03:47 +0000 Subject: [FIX] website: activate translation before starting tour During the rte_translator tour, the step that adds and loads the fr_BE language lasts a very long time. This time depends of the loading of `.po` files. For un unknown reason the temporary postgresql table created in ir_translation.py may takes more times than usual. This, repeated for each `.po' files, in enterprise, leads to a timeout of this step (more than 60 sec). As this seems linked to postgresql (or another external factor) and as the purpose of this test is not to test the translation loading, the present fix is to simply activate `fr_BE` translation for the website on the server side before starting the tour. The loading of translation is tested in test_translation_import module. closes odoo/odoo#48621 X-original-commit: a15c7099a36a3a5b4dca9375b233cbe3fe2a280f Signed-off-by: Martin Trigaux (mat) --- addons/website/static/tests/tours/rte.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'addons/website/static/tests') diff --git a/addons/website/static/tests/tours/rte.js b/addons/website/static/tests/tours/rte.js index 3d0c43a524d..5a8f9022c97 100644 --- a/addons/website/static/tests/tours/rte.js +++ b/addons/website/static/tests/tours/rte.js @@ -13,23 +13,11 @@ var ready = Promise.all([domReady, session.is_bound, ajax.loadXML()]); tour.register('rte_translator', { test: true, - url: '/', + url: '/fr_BE', wait_for: ready, }, [{ - content: "click on Add a language", - trigger: '.js_language_selector a:has(i.fa)', -}, { - content: "select french", - trigger: 'select[name="lang"]', - run: 'text "fr_BE"', -}, { - content: "load french", - trigger: '.modal-footer button:first', - extra_trigger: '.modal select[name="lang"]:propValueContains(fr_BE)', -}, { content : "click language dropdown", trigger : '.js_language_selector .dropdown-toggle', - timeout: 60000, }, { content: "go to english version", trigger: '.js_language_selector a[data-url_code="en"]', -- cgit v1.2.3