From 832bac062874f8afd73a528cc040a85303d920db Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Fri, 21 Feb 2020 15:55:43 +0000 Subject: [PATCH] [REM] website: remove useless browser_js test This test goes to the public homepage and directly logs a 'test succesful'. It's useless as many other tests use the public homepage and therefore, those tests will crash if the homepage is unavailable. Moreover, it happens to trigger random failures due to the fact that some RPC may occur between the cookies cleaning and the termination of the browser. Typically a "GET /web/webclient/locale/en_US" can be triggered right after the clearing of the browser cookies, cache ... closes odoo/odoo#46004 X-original-commit: 3aded126e78b18f8bb753f1b57b827667ca99d18 Signed-off-by: Christophe Monniez (moc) --- addons/website/tests/test_ui.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/addons/website/tests/test_ui.py b/addons/website/tests/test_ui.py index b0bfa241226..92f0796fc9b 100644 --- a/addons/website/tests/test_ui.py +++ b/addons/website/tests/test_ui.py @@ -92,13 +92,10 @@ class TestUiTranslate(odoo.tests.HttpCase): @odoo.tests.common.tagged('post_install', '-at_install') class TestUi(odoo.tests.HttpCase): - def test_01_public_homepage(self): - self.browser_js("/", "console.log('test successful')", "'website.content.snippets.animation' in odoo.__DEBUG__.services") - - def test_02_admin_tour_banner(self): + def test_01_admin_tour_banner(self): self.start_tour("/", 'banner', login='admin', step_delay=100) - def test_03_restricted_editor(self): + def test_02_restricted_editor(self): self.restricted_editor = self.env['res.users'].create({ 'name': 'Restricted Editor', 'login': 'restricted', @@ -110,7 +107,7 @@ class TestUi(odoo.tests.HttpCase): }) self.start_tour("/", 'restricted_editor', login='restricted') - def test_04_backend_dashboard(self): + def test_03_backend_dashboard(self): self.start_tour("/", 'backend_dashboard', login='admin') def test_05_specific_website_editor(self):