summaryrefslogtreecommitdiff
path: root/addons/board/static/tests/dashboard_tests.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/board/static/tests/dashboard_tests.js')
-rw-r--r--addons/board/static/tests/dashboard_tests.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/addons/board/static/tests/dashboard_tests.js b/addons/board/static/tests/dashboard_tests.js
index 1ef295e3962..1211fc5da05 100644
--- a/addons/board/static/tests/dashboard_tests.js
+++ b/addons/board/static/tests/dashboard_tests.js
@@ -126,8 +126,8 @@ QUnit.test('basic functionality, with one sub action', function (assert) {
if (route === '/web/dataset/search_read') {
assert.deepEqual(args.domain, [['foo', '!=', 'False']], "the domain should be passed");
}
- if (route === '/web/view/add_custom') {
- assert.step('add custom');
+ if (route === '/web/view/edit_custom') {
+ assert.step('edit custom');
return $.when(true);
}
return this._super.apply(this, arguments);
@@ -158,7 +158,7 @@ QUnit.test('basic functionality, with one sub action', function (assert) {
form.$('.oe_fold').click();
assert.ok(form.$('.oe_content').is(':visible'), "content is visible again");
- assert.verifySteps(['load action', 'add custom', 'add custom']);
+ assert.verifySteps(['load action', 'edit custom', 'edit custom']);
assert.strictEqual($('.modal').length, 0, "should have no modal open");
@@ -186,7 +186,7 @@ QUnit.test('basic functionality, with one sub action', function (assert) {
assert.strictEqual($('.modal').length, 0, "should have no modal open");
assert.strictEqual(form.$('.oe_action').length, 0, "should have no displayed action");
- assert.verifySteps(['load action', 'add custom', 'add custom', 'add custom', 'add custom']);
+ assert.verifySteps(['load action', 'edit custom', 'edit custom', 'edit custom', 'edit custom']);
form.destroy();
});
@@ -295,8 +295,8 @@ QUnit.test('can drag and drop a view', function (assert) {
views: [[4, 'list']],
});
}
- if (route === '/web/view/add_custom') {
- assert.step('add custom');
+ if (route === '/web/view/edit_custom') {
+ assert.step('edit custom');
return $.when(true);
}
return this._super.apply(this, arguments);
@@ -342,8 +342,8 @@ QUnit.test('twice the same action in a dashboard', function (assert) {
views: [[4, 'list'],[5, 'kanban']],
});
}
- if (route === '/web/view/add_custom') {
- assert.step('add custom');
+ if (route === '/web/view/edit_custom') {
+ assert.step('edit custom');
return $.when(true);
}
return this._super.apply(this, arguments);