[FIX] web, *: add lazy loaded libs in the test assets
*: partner_autocomplete Those cannot be properly lazy loaded by test widgets, so they are loaded directly through test assets. Testing lazy loading should be part of a dedicated test system. Part of https://github.com/odoo/odoo/pull/44596
This commit is contained in:
@@ -9,6 +9,12 @@
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="js_tests_assets" inherit_id="web.js_tests_assets">
|
||||
<xpath expr="//script[last()]" position="after">
|
||||
<script type="text/javascript" src="/partner_autocomplete/static/lib/jsvat.js"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="qunit_suite" inherit_id="web.qunit_suite">
|
||||
<xpath expr="//script[last()]" position="after">
|
||||
<script type="text/javascript" src="/partner_autocomplete/static/tests/partner_autocomplete_tests.js"/>
|
||||
|
||||
@@ -595,6 +595,10 @@
|
||||
</t>
|
||||
</template>
|
||||
|
||||
<template id="web.css_tests_assets">
|
||||
<link type="text/css" rel="stylesheet" href="/web/static/lib/daterangepicker/daterangepicker.css"/>
|
||||
</template>
|
||||
|
||||
<template id="web.js_tests_assets">
|
||||
<t t-call-assets="web.assets_common" t-js="false"/>
|
||||
<t t-call-assets="web.assets_backend" t-js="false"/>
|
||||
@@ -614,6 +618,9 @@
|
||||
<script type="text/javascript" src="/web/static/lib/ace/mode-python.js"></script>
|
||||
<script type="text/javascript" src="/web/static/lib/ace/mode-xml.js"></script>
|
||||
<script type="text/javascript" src="/web/static/lib/ace/mode-js.js"></script>
|
||||
<script type="text/javascript" src="/web/static/lib/Chart/Chart.js"></script>
|
||||
<script type="text/javascript" src="/web/static/lib/daterangepicker/daterangepicker.js"></script>
|
||||
<script type="text/javascript" src="/web/static/src/js/libs/daterangepicker.js"></script>
|
||||
|
||||
<script type="text/javascript" src="/web/static/tests/main_tests.js"></script>
|
||||
|
||||
@@ -657,6 +664,7 @@
|
||||
<t t-set="html_data" t-value="{'style': 'height: 100%;'}"/>
|
||||
<t t-set="title">Web Tests</t>
|
||||
<t t-set="head">
|
||||
<t t-call="web.css_tests_assets"/>
|
||||
<t t-call="web.js_tests_assets"/>
|
||||
|
||||
<script type="text/javascript" src="/base/static/tests/base_settings_tests.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user