Odoo 15 Websuite.test_js failure in sh
t-sq1 opened this issue · 0 comments
t-sq1 commented
Hi!
When referring to 'web_google_maps' an odoo sh error appears:
FAIL: WebSuite.test_js
Traceback (most recent call last):
File "/home/odoo/src/odoo/addons/web/tests/test_js.py", line 15, in test_js
self.browser_js('/web/tests?mod=web&failfast', "", "", login='admin', timeout=1800)
File "/home/odoo/src/odoo/odoo/tests/common.py", line 1608, in browser_js
self.fail('%s\n%s' % (message, error))
AssertionError: Some js test failed
QUnit test failed: ActionManager > Window Actions > execute smart button and back [message: "Selector '.o_form_buttons_view button:not([disabled])' should have exactly 2 matches inside the target", actual: "3", expected: "2"]
QUnit test failed: ActionManager > Window Actions > execute smart button and back [message: "Selector '.o_form_buttons_view button:not([disabled])' should have exactly 2 matches inside the target", actual: "3", expected: "2"]
2 / 12709 tests failed.
It seems to be caused by:
renderButtons: function ($node) {
this._super.apply(this, arguments);
const $footer = this.footerToButtons ? this.renderer.$el && this.renderer.$('footer') : null;
const mustRenderFooterButtons = $footer && $footer.length;
if ((this.$buttons && !this.$marker_buttons) || mustRenderFooterButtons) {
this.$marker_buttons = $(
qweb.render('FormView.marker_edit_button', {
widget: this,
})
);
this.$marker_buttons.on('click', this._onButtonEditMarker.bind(this));
if (this.$buttons.find('.o_form_buttons_view').length > 0) {
**this.$marker_buttons.appendTo(this.$buttons.find('.o_form_buttons_view'));**
}
}
},
in form_controller.js.
How can I solve this?
Thanks!