mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[MIG] web_timeline: Migration to 17.0
- Convert Moment.js to Luxon. - Replace Underscore.js with native JavaScript code. - Migrate legacy views to the new system and add an architecture parser to separate logic. - added basic test
This commit is contained in:
1
web_timeline/tests/__init__.py
Normal file
1
web_timeline/tests/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from . import test_web_timeline
|
||||
23
web_timeline/tests/test_web_timeline.py
Normal file
23
web_timeline/tests/test_web_timeline.py
Normal file
@@ -0,0 +1,23 @@
|
||||
# Copyright 2024 Tecnativa - Carlos Lopez
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
from odoo.tests import tagged
|
||||
from odoo.tests.common import HttpCase
|
||||
|
||||
|
||||
@tagged("post_install", "-at_install")
|
||||
class TestWebTimeline(HttpCase):
|
||||
def test_timeline_arch(self):
|
||||
self.browser_js(
|
||||
"/web/tests?filter=TimelineView - ArchParser",
|
||||
"",
|
||||
login="admin",
|
||||
timeout=1800,
|
||||
)
|
||||
|
||||
def test_timeline_view(self):
|
||||
self.browser_js(
|
||||
"/web/tests?filter=TimelineView - View",
|
||||
"",
|
||||
login="admin",
|
||||
timeout=1800,
|
||||
)
|
||||
Reference in New Issue
Block a user