summaryrefslogtreecommitdiff
path: root/addons/stock
diff options
context:
space:
mode:
authoraab-odoo <aab@odoo.com>2020-02-04 10:57:35 +0000
committeraab-odoo <aab@odoo.com>2020-02-04 11:27:24 +0000
commit7de76891c11fefef93e70c75daf6ee2c8a145a5e (patch)
tree2bd9fb526fd52b2f3884a53384ed68a6d4a8bf51 /addons/stock
parent5706ff62df3da78a03b1fade4b99c4c887f63d7b (diff)
[FIX] stock: already defined test module
When there are two modules with the same name, an error is thrown and only one of them is executed. closes odoo/odoo#44573 Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
Diffstat (limited to 'addons/stock')
-rw-r--r--addons/stock/static/tests/popover_widget_tests.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/stock/static/tests/popover_widget_tests.js b/addons/stock/static/tests/popover_widget_tests.js
index d14ae384f6a..dff13d60489 100644
--- a/addons/stock/static/tests/popover_widget_tests.js
+++ b/addons/stock/static/tests/popover_widget_tests.js
@@ -1,4 +1,4 @@
-odoo.define('web.data_export_tests', function (require) {
+odoo.define('stock.popover_widget_tests', function (require) {
"use strict";
var testUtils = require('web.test_utils');
@@ -19,7 +19,7 @@ QUnit.module('ModelFieldSelector', {
}
};
},
-}, function () {
+}, function () {
QUnit.test("Test creation/usage popover widget form", async function (assert) {
assert.expect(6);
@@ -40,7 +40,7 @@ QUnit.module('ModelFieldSelector', {
assert.strictEqual($popoverButton.length, 1, "Should have a popover icon/button in red");
assert.strictEqual($popoverButton.prop('special_click'), true, "Special click properpy should be activated");
await testUtils.dom.triggerEvents($popoverButton, ['focus']);
- var $popover = $('div.popover');
+ $popover = $('div.popover');
assert.strictEqual($popover.length, 1, "Should have a popover container in DOM");
assert.strictEqual($popover.html().includes("var that = self // why not?"), true, "The message should be in DOM");
assert.strictEqual($popover.html().includes("JS Master"), true, "The title should be in DOM");