You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Odoo 11.0 changed the way we write widget tests, and in this change, it removed odoo.define_section. That's why we are getting errors such as this one:
` AssertionError: ("TypeError: undefined is not a function (evaluating 'odoo.define_section')\n"
` ' at http://127.0.0.1:8069/web_responsive/static/tests/js/web_responsive.js:4 '
` '(in global code)\n'
` '(leaf frame on top)')
To start, it seems you have to just use odoo.define to run the tests, but I'm not sure the depth of the changes in that file to adapt to new tests, to be honest...
Yes, at least you can check the JS code and it should contain proper docstrings right now, although you still have to guess the right file to look up to. 😆
Since this module does not use Odoo Widget, there are only some changes in syntax of javascript test. I have provided a fix. You guys can take a look at #772.
Current 11.0 builds will all fail due to:
web/web_responsive/static/tests/js/web_responsive.js
Line 4 in d62b1b5
Odoo 11.0 changed the way we write widget tests, and in this change, it removed
odoo.define_section
. That's why we are getting errors such as this one:We have to fix that, and it would be good to add the instructions to https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-11.0 once discovered how to do it.
The good news is that we have lots of good examples available and some introduction in slides 35-41 of @gde-odoo's presentation at Odoo Experience 2017.
To start, it seems you have to just use
odoo.define
to run the tests, but I'm not sure the depth of the changes in that file to adapt to new tests, to be honest...cc @Tecnativa @lasley @angelmoya
The text was updated successfully, but these errors were encountered: