File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Copyright 2024 Hunki Enterprises BV
22# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0)
33
4- from odoo .tests .common import HttpCase , TransactionCase , tagged
4+ import odoo
5+ from odoo .tests .common import TransactionCase
6+
7+ from odoo .addons .web .tests .test_js import WebSuite
58
69
710class TestWebWidgetPattern (TransactionCase ):
@@ -14,14 +17,11 @@ def test_fields_get(self):
1417 self .assertEqual (field_description ["pattern" ], "[0-9]" )
1518
1619
17- @tagged ("post_install" , "-at_install" )
18- class TestWebWidgetPatternHoot (HttpCase ):
19- def test_js (self ):
20- self .browser_js (
21- "/web/tests?headless&loglevel=2&preset=desktop&filter=WebWidgetPattern" ,
22- "" ,
23- "" ,
24- login = "admin" ,
25- success_signal = "[HOOT] Test suite succeeded" ,
26- error_checker = lambda x : "[HOOT]" not in x ,
27- )
20+ @odoo .tests .tagged ("post_install" , "-at_install" )
21+ class TestWebWidgetPatternHoot (WebSuite ):
22+ def get_hoot_filters (self ):
23+ self ._test_params = [("+" , "@web_widget_pattern" )]
24+ return super ().get_hoot_filters ()
25+
26+ def test_web_widget_pattern (self ):
27+ self .test_unit_desktop ()
You can’t perform that action at this time.
0 commit comments