[IMP] point_of_sale: cleanup unnecessary testing content

* remove `component_extension_tests`, that's a test from web and
  already tested by web, no idea why it's rerunning in POS
* remove all failfast specs, after discussion with ged, seb, and
  xdo it was considered not useful: it's mostly for the runbot but
  turns out to be pretty minor as far as positives go, and it makes
  fixing errors much harder

Part-of: odoo/odoo#77735
This commit is contained in:
Xavier Morel
2021-10-25 09:53:11 +00:00
parent 468eb84fb4
commit 52b2edf623
3 changed files with 3 additions and 7 deletions
-1
View File
@@ -204,7 +204,6 @@
('include', 'web.frontend_legacy'),
],
'point_of_sale.qunit_suite_tests': [
'web/static/tests/legacy/component_extension_tests.js',
'point_of_sale/static/tests/unit/**/*',
],
'point_of_sale.assets_backend_prod_only': [
+1 -4
View File
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import odoo.addons.web.tests.test_js
import odoo.tests
@@ -17,6 +16,4 @@ class WebSuite(odoo.tests.HttpCase):
self.main_pos_config.open_session_cb(check_coa=False)
# point_of_sale desktop test suite
self.browser_js(
"/pos/ui/tests?mod=web&failfast", "", "", login="admin", timeout=1800
)
self.browser_js("/pos/ui/tests?mod=web", "", "", login="admin", timeout=1800)
+2 -2
View File
@@ -12,7 +12,7 @@ class WebSuite(odoo.tests.HttpCase):
def test_js(self):
# webclient desktop test suite
self.browser_js('/web/tests?mod=web&failfast', "", "", login='admin', timeout=1800)
self.browser_js('/web/tests?mod=web', "", "", login='admin', timeout=1800)
def test_check_suite(self):
# verify no js test is using `QUnit.only` as it forbid any other test to be executed
@@ -43,4 +43,4 @@ class MobileWebSuite(odoo.tests.HttpCase):
def test_mobile_js(self):
# webclient mobile test suite
self.browser_js('/web/tests/mobile?mod=web&failfast', "", "", login='admin', timeout=1800)
self.browser_js('/web/tests/mobile?mod=web', "", "", login='admin', timeout=1800)